| 44 | // Returns 1 when x > p + thr |
| 45 | template<typename T> |
| 46 | inline int test_pixel(const T *image, const float p, float thr, int y, int x, |
| 47 | unsigned idim0) { |
| 48 | return -test_smaller((float)image[idx(y, x, idim0)], p, thr) + |
| 49 | test_greater((float)image[idx(y, x, idim0)], p, thr); |
| 50 | } |
| 51 | |
| 52 | // abs_diff() |
| 53 | // Returns absolute difference of x and y |
nothing calls this directly
no test coverage detected