Detect Line Segments

Function

This Step detects line segments in an image.

../../../../../_images/detect_line_segments.png

Usage Scenario

This Step extracts the line segment features of objects in the 2D image for subsequent matching. This Step can be used with the Step 2D Matching.

Input and Output

../../../../../_images/76_detect_line_segments.png

Parameters

Line Detector Setting

Line Detector Type
Parameter description: This parameter is used to designate the type of line detector.
List of value:
  • LineSegmentDetector

  • FastLineDetector

  • EdgeDrawingDetector

Default value: LineSegmentDetector

Line Properties

Min Line Length:
Parameter description: This parameter sets the minimal length of the line to be detected. Lines shorter than the set value of the parameter will be filtered out.
Default value: 10 px
Suggested value: 10 px, 20 px, 30 px
Filter Out Lines outside Masks:
Parameter description: This parameter decides whether to filter out lines that are detected outside the masks.
Default value: unselected
Suggestion: Set the parameter according to your actual needs.