Back to FabImage Library website
You are here: Start » Function Reference » Computer Vision » Shape Fitting » DetectPolygons_LSD

DetectPolygons_LSD
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Finds a specified polygons in an image using Line Segment Detection method.
Syntax
C++
C#
void fil::DetectPolygons_LSD ( const fil::Image& inImage, ftl::Optional<const fil::Region&> inRoi, const fil::Path& inPath, fil::GaussKernel::Type inSmoothing, float inEdgeThreshold, float inTolerance, ftl::Array<fil::Path>& outPaths )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Image to fit the polygons to | ||
![]() |
inRoi | Optional<const Region&> | NIL | Input region of interest | |
![]() |
inPath | const Path& | Input Polygon | ||
![]() |
inSmoothing | GaussKernel::Type | _5x5 | Predefined Gauss kernel | |
![]() |
inEdgeThreshold | float | 0.1 - ![]() |
4.0f | Minimum accepted edge magnitude |
![]() |
inTolerance | float | 0.001 - ![]() |
1.f | Maximum accepted defects in output polygons |
![]() |
outPaths | Array<Path>& | Found polygons |