Line Detection via Standard Hough Transform

Detects lines in binary images via Standard Hough Transform.
41.2K Downloads
Updated 4 Sep 2012

View License

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
Example :
[pdetect,tetadetect,Accumulator] = houghline(Imbinary,pstep,tetastep,thresh)

Cite As

Amin Sarafraz (2026). Line Detection via Standard Hough Transform (https://www.mathworks.com/matlabcentral/fileexchange/4983-line-detection-via-standard-hough-transform), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Parabola detection using Hough Transform

Version Published Release Notes
1.1.0.0

Error handling/ Better documentation/ Evaluating the comment by Nicolas HUOT

1.0.0.0

Modified version,slightly faster and better performance, with a good comments.