| 45 | } |
| 46 | |
| 47 | float get_pixel(image m, int x, int y, int c) |
| 48 | { |
| 49 | assert(x < m.w && y < m.h && c < m.c); |
| 50 | return m.data[c*m.h*m.w + y*m.w + x]; |
| 51 | } |
| 52 | float get_pixel_extend(image m, int x, int y, int c) |
| 53 | { |
| 54 | if(x < 0 || x >= m.w || y < 0 || y >= m.h) return 0; |
no outgoing calls
no test coverage detected