Line Detection via Standard Hough Transform

Detects lines in binary images via Standard Hough Transform.

You are now following this Submission

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 .

Acknowledgements

Inspired: Parabola detection using Hough Transform

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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.