Detect lines in grayscale image using Hough Transform

Detection of lines (line segments) in a grayscale image using gradient-based Hough Transform.

You are now following this Submission

Hough transform for line detection based on image's gradient field.

1. Operates on grayscale images, NOT B/W bitmaps.
2. NO loops involved in the implementation of Hough transform, which makes the operation fast.
3. Able to detect the two ends of line segments.

Cite As

Tao Peng (2026). Detect lines in grayscale image using Hough Transform (https://www.mathworks.com/matlabcentral/fileexchange/9226-detect-lines-in-grayscale-image-using-hough-transform), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: LoadGaus()

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Updated on Dec. 05, 2005.