Hough变换我要分享

Hough transform

matlab 变换 hough

关注次数: 181

下载次数: 0

文件大小: 104.40 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:% 该算法通过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.


代码预览