Commit 1ea41e72 authored by Pavel Rojtberg's avatar Pavel Rojtberg

fix gftt opencv kernel when using mask

parent 81c5d580
...@@ -64,7 +64,7 @@ __kernel void maxEigenVal(__global const uchar * srcptr, int src_step, int src_o ...@@ -64,7 +64,7 @@ __kernel void maxEigenVal(__global const uchar * srcptr, int src_step, int src_o
int src_index = mad24(id / cols, src_step, mad24((id % cols), (int)sizeof(float), src_offset)); int src_index = mad24(id / cols, src_step, mad24((id % cols), (int)sizeof(float), src_offset));
#ifdef HAVE_MASK #ifdef HAVE_MASK
int mask_index = mad24(id / cols, mask_step, id % cols + mask_offset); int mask_index = mad24(id / cols, mask_step, id % cols + mask_offset);
if (mask[mask_index]) if (maskptr[mask_index])
#endif #endif
maxval = max(maxval, *(__global const float *)(srcptr + src_index)); maxval = max(maxval, *(__global const float *)(srcptr + src_index));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment