DetectPolygons_LSD
Finds a specified polygons in an image using Line Segment Detection method.
Syntax
C++
C#
Python
def DetectPolygons_LSD( inImage: Image, inPath: Path, inSmoothing: GaussKernel, inEdgeThreshold: float, inTolerance: float, /, *, inRoi: Region | None = None ) -> outPaths: list[Path]
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Image to fit the polygons to | ||
![]() |
inRoi | Region | None | None | Input region of interest | |
![]() |
inPath | Path | Input Polygon | ||
![]() |
inSmoothing | GaussKernel | Predefined Gauss kernel | ||
![]() |
inEdgeThreshold | float | 0.1 - ![]() |
Minimum accepted edge magnitude | |
![]() |
inTolerance | float | 0.001 - ![]() |
Maximum accepted defects in output polygons | |
![]() |
outPaths | list[Path] | Found polygons |



