Hough Transform: improving algorithm efficiency over OpenCL
问题 I am trying to detect a circle in binary image using hough transform. When I use Opencv's built-in function for the circular hough transform, it is OK and I can find the circle. Now I try to write my own 'kernel' code for doing hough transform but is very very slow: kernel void hough_circle(read_only image2d_t imageIn, global int* in,const int w_hough,__global int * circle) { sampler_t sampler=CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST; int gid0 = get_global