中文说明:% 该算法通过a = x-r*cos(angle),b = y-r*sin(angle)将圆图像中的边缘点% 映射到参数空间(a,b,r)中,由于是数字图像且采取极坐标,angle和r都取% 一定的范围和步长,这样通过两重循环(angle循环和r循环)即可将原图像% 空间的点映射到参数空间中,再在参数空间(即一个由许多小立方体组成的% 大立方体)中寻找圆心,然后求出半径坐标。
English Description:
% Which a = x-r*COS (angle), b = y-r*sin (angle) rounded edges in an image% Map to the parameter space (a,b,r), and because it is digital images taken polar coordinates, r and angle were taken% Certain scope and step through double loops (angle and r circulation) to the original images% Of points in space is mapped to the parameter space, in the parameter space (that is, one made up of many small cubes% Big cube) find circle Center, and then extracts the RADIUS coordinate.