Hough
代码说明:
用HOUGH检测直线的时候是两个未知量,因为轴半径和相角可以确定一条直 线,在HOUGH域出现累计最大点就可能是原域中的直线。现在回到圆的检测 上来,确定一个圆需要什么:X坐标,Y坐标,半径三个未知量吧,好了,现在, 你做一个三维空间的HOUGH域,以这三个未知量作为三个轴,现在按照一定步长 进行三重循环,在最内层循环是这样的,X,Y 确定,以不同的半径进行搜索,如 果你的X,Y刚好就是实际图像的X,Y处,半径又搜索到实际真实的半径(The HOUGH detect straight when two unknown amount of axis radius and phase angle can be determined in a straight line, in the HOUGH domain cumulative maximum point may be the straight line of the original domain. Now back to the circle detection up to determine what a circle: X coordinate, Y coordinate, radius three unknowns, now, you do the HOUGH domain of a three-dimensional space, three to three unknown quantity as axis, in accordance with a certain step size triple loop, is such that in the innermost loop, X, and Y determined search for a different radius, If you X, Y, exactly is the actual image of the X, Y, at the radius radius of the search to the actual real)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!