| 53 | // Returns 1 when x > p + thr |
| 54 | template<typename T> |
| 55 | inline __device__ int test_pixel(const T *local_image, const float p, |
| 56 | const float thr, const int x, const int y) { |
| 57 | return -test_smaller((float)local_image[idx(x, y)], p, thr) + |
| 58 | test_greater((float)local_image[idx(x, y)], p, thr); |
| 59 | } |
| 60 | |
| 61 | // max_val() |
| 62 | // Returns max of x and y |
nothing calls this directly
no test coverage detected