MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / test_pixel

Function test_pixel

src/backend/cpu/kernel/fast.hpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// Returns 1 when x > p + thr
45template<typename T>
46inline 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

Callers

nothing calls this directly

Calls 3

test_smallerFunction · 0.70
idxFunction · 0.70
test_greaterFunction · 0.70

Tested by

no test coverage detected