Fix OpenCL version of HoughLinesP function

This commit is contained in:
vbystricky 2014-11-05 14:31:06 +04:00
parent dce629d0e2
commit 957e5ef8eb

View File

@ -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