Fix OpenCL version of HoughLinesP function

pull/3390/head
vbystricky 10 years ago
parent dce629d0e2
commit 957e5ef8eb
  1. 3
      modules/imgproc/src/opencl/hough_lines.cl

@ -184,6 +184,8 @@ __kernel void get_lines(__global const uchar * accum_ptr, int accum_step, int ac
int x = get_global_id(0);
int y = get_global_id(1);
if (y < accum_rows-2)
{
__global uchar* accum = accum_ptr + mad24(y+1, accum_step, mad24(x+1, (int) sizeof(int), accum_offset));
__global int4* lines = (__global int4*)(lines_ptr + lines_offset);
__global int* lines_index = lines_index_ptr + 1;
@ -326,5 +328,6 @@ __kernel void get_lines(__global const uchar * accum_ptr, int accum_step, int ac
}
}
}
#endif
Loading…
Cancel
Save