Start » Filter Reference » Geometry 2D » Geometry 2D Fitting » 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 | |
---|---|---|---|
inRegion | Region | Input region | |
inMethod | RegionSegmentFittingMethod | ||
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.