Merge pull request #10366 from alalek:ocl_fix_cvtcolor_read

pull/10265/head
Vadim Pisarevsky 7 years ago
commit 047ad4ff71
  1. 4
      modules/imgproc/src/opencl/cvtcolor.cl

@ -877,7 +877,11 @@ __kernel void RGB(__global const uchar* srcptr, int src_step, int src_offset,
{
__global const DATA_TYPE * src = (__global const DATA_TYPE *)(srcptr + src_index);
__global DATA_TYPE * dst = (__global DATA_TYPE *)(dstptr + dst_index);
#if scn == 3
DATA_TYPE_3 src_pix = vload3(0, src);
#else
DATA_TYPE_4 src_pix = vload4(0, src);
#endif
#ifdef REVERSE
dst[0] = src_pix.z;

Loading…
Cancel
Save