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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Image to fit the segments to | ||
![]() |
inRoi | Region | None | None | Input region of interest | |
![]() |
inSmoothing | GaussKernel | Predefined Gauss kernel | ||
![]() |
inEdgeThreshold | float | 0.1 - ![]() |
Minimum accepted edge magnitude | |
![]() |
inMinLength | int | 0 - ![]() |
Minimum length of output segments | |
![]() |
outSegments | list[Segment2D] | Found segments |



