Back to Aurora Vision Studio website

You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Fitting » FitSegmentToRegion

FitSegmentToRegion


Module: FoundationBasic

Approximates a region with a segment using selected outliers suppression method.

Applications

Finding a locally optimal segment. Good enough when the number of outliers is small.
Name Type Description
Input value inRegion Region Input region
Input value inMethod RegionSegmentFittingMethod
Output value outSegment Segment2D

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Degenerate convex hull on input in FitSegmentToRegion.
DomainError Empty region on input in FitSegmentToRegion.

Complexity Level

This filter is available on Advanced Complexity Level.