在一个二值图像中检测线我要分享

Detects lines in a binary image

matlab 图像 一个 检测线

关注次数: 299

下载次数: 0

文件大小: 1.18 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

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

代码描述

中文说明:HOUGHLINE-使用常见的计算机视觉操作称为 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-原始版本 11 月 24,2004-修改后的版本,略快的速度和更好的性能。


English Description:

HOUGHLINE - detects lines in a binary image using common computer vision operation known as the Hough Transform. 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:       Imbinary - a binary image. image pixels that have value equal to 1 are     


代码预览