Line Detection via Standard Hough Transform

Detects lines in binary images via Standard Hough Transform.


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 (2023). 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

Inspired: Parabola detection using Hough Transform

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

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

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