Fix error in OpenCl version of meanstddev for continues src and not continues mask
This commit is contained in:
@@ -59,7 +59,7 @@ __kernel void meanStdDev(__global const uchar * srcptr, int src_step, int src_of
|
||||
for (int grain = groups * WGS; id < total; id += grain)
|
||||
{
|
||||
#ifdef HAVE_MASK
|
||||
#ifdef HAVE_SRC_CONT
|
||||
#ifdef HAVE_MASK_CONT
|
||||
int mask_index = id;
|
||||
#else
|
||||
int mask_index = mad24(id / cols, mask_step, id % cols);
|
||||
|
||||
Reference in New Issue
Block a user