Line Detector

Detect lines directly in RGB, grayscale, or binary images.

https://github.com/mathworks/Line-Detector

You are now following this Submission

Use syntax as easy as

detections = detectLines(img, 'numlines', n);
displayResults(detections)

or optionally provide any input to the underlying functionality. Also allows specification of preprocessing functions, and allows you to specify properties of displayed lines.

This video demonstrates the utility of the function:
https://www.youtube.com/watch?v=j0q4UuI68Vc

Please share comments and suggestions below!

Cite As

Brett Shoelson (2026). Line Detector (https://github.com/mathworks/Line-Detector/releases/tag/v1.0), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.