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

Function test_pixel

src/backend/cuda/kernel/fast.hpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53// Returns 1 when x > p + thr
54template<typename T>
55inline __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

Callers

nothing calls this directly

Calls 3

test_smallerFunction · 0.70
idxFunction · 0.70
test_greaterFunction · 0.70

Tested by

no test coverage detected