Back to Aurora Vision Library website

You are here: Start » Function Reference » Computer Vision » Shape Fitting » DetectPolygons_LSD

DetectPolygons_LSD


Header: AVL.h
Namespace: avl
Module: FoundationPro

Finds a specified polygons in an image using Line Segment Detection method.

Syntax

C++
C#
 
void avl::DetectPolygons_LSD
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	const avl::Path& inPath,
	avl::GaussKernel::Type inSmoothing,
	float inEdgeThreshold,
	float inTolerance,
	atl::Array<avl::Path>& outPaths
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Image to fit the polygons to
Input value inRoi Optional<const Region&> NIL Input region of interest
Input value inPath const Path& Input Polygon
Input value inSmoothing GaussKernel::Type _5x5 Predefined Gauss kernel
Input value inEdgeThreshold float 0.1 - 4.0f Minimum accepted edge magnitude
Input value inTolerance float 0.001 - 1.f Maximum accepted defects in output polygons
Output value outPaths Array<Path>& Found polygons