mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
fix code in the kernel
This commit is contained in:
parent
04433b2d2b
commit
63584bffda
@ -110,7 +110,7 @@ __kernel void reduce_horz_pre(__global const uchar * srcptr, int src_step, int s
|
||||
dstT tmp[cn] = { INIT_VALUE };
|
||||
|
||||
int src_step_mul = BUF_COLS * cn;
|
||||
for (int x = 0; x < cols; x += BUF_COLS, src += src_step_mul)
|
||||
for (int idx = x; idx < cols; idx += BUF_COLS, src += src_step_mul)
|
||||
{
|
||||
#pragma unroll
|
||||
for (int c = 0; c < cn; ++c)
|
||||
|
Loading…
Reference in New Issue
Block a user