基于 Hough 变换直线检测我要分享

Line detection based on Hough transform

matlab 检测 基于 变换 hough 直线

关注次数: 285

下载次数: 0

文件大小: 2.27 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 1积分

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

代码描述

中文说明: 此 matlab 代码使用常见计算机视觉操作称为 Hough 变换的二值图像中检测线。这是为了显示这种方法的工作方式只是线的 Hough 变换的标准实现。 评论: 函数使用标准 Hough 变换检测二进制图像中的行。 根据 Hough 变换,在图像空间中的每个像素 对应于一条线在霍夫空间,反之亦然。此函数使用 极坐标表示法即行 x * cos (teta) + y * 罪 (teta) = p 来检测 二进制图像中的线条。左上的角是图像的极坐标的起源 系统。 使用方法: [pdetect,tetadetect,蓄能器] = houghline(Imbinary,pstep,tetastep,thresh) 参数: Imbinary-一个二值图像。具有值等于 1 的图像像素 HOUGHLINE 函数的兴趣的像素。 pstep-半径极坐标线的间隔。 tetastep-间隔角的极坐标中的行。 脱粒-一个门限值,确定的最小数目 属于一条线在图像空间中的像素。阈值必须 是大于或等于 3(default)。 返回: pdetect-向包含半径的量子检测中的行 极坐标系统。 tetadetect-一个向量,其中包含工厂中的行的角度 极坐标系统。 蓄能器-霍夫空间中的蓄能器数组。 通过编写: 阿明萨拉夫拉兹,可能 5,2004


English Description:

This matlab code detects lines in a binary image using common computer vision operation known as the Hough Transform. This is just a standard implementaion of Hough transform for lines in order to show how this method works. Comments:        Function uses Standard Hough Transform to detect Lines in a binary image.        According to the Hough Transform, each pixel in image space        corresponds to a line in Hough space and vise versa.This function uses        polar representation of lines i.e. x*cos(teta)+y*sin(teta)=p to detect         lines in binary image. upper left corner of image is the origin of polar coordinate        system. Usage: [pdetect,tetadetect,Accumulator] = houghline(Imbinary,pstep,tetastep,thresh) Arguments:        


代码预览