Line Detection via Standard Hough Transform
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 (https://www.mathworks.com/matlabcentral/fileexchange/4983-line-detection-via-standard-hough-transform), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Transforms > Hough Transform >
Tags
Acknowledgements
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.