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
Input value inImage Image Image to fit the polygons to
Input value inRoi Region | None None Input region of interest
Input value inPath Path Input Polygon
Input value inSmoothing GaussKernel Predefined Gauss kernel
Input value inEdgeThreshold float 0.1 - Minimum accepted edge magnitude
Input value inTolerance float 0.001 - Maximum accepted defects in output polygons
Output value outPaths list[Path] Found polygons