DetectSegments_LSD


Finds segments in an image using Line Segment Detection method.

Syntax

C++
C#
Python
 
def DetectSegments_LSD(
	inImage: Image,
	inSmoothing: GaussKernel,
	inEdgeThreshold: float,
	inMinLength: int,
	/,
	*,
	inRoi: Region | None = None
)
-> outSegments: list[Segment2D]

Parameters

Name Type Range Default Description
Input value inImage Image Image to fit the segments to
Input value inRoi Region | None None Input region of interest
Input value inSmoothing GaussKernel Predefined Gauss kernel
Input value inEdgeThreshold float 0.1 - Minimum accepted edge magnitude
Input value inMinLength int 0 - Minimum length of output segments
Output value outSegments list[Segment2D] Found segments