Start » Filter Reference » Geometry 2D » Geometry 2D Fitting » FitSegmentToPoints
Module: | FoundationBasic |
---|
Approximates points 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 | |
---|---|---|---|
![]() |
inPoints | Point2DArray | |
![]() |
inRange | Range* | Determines which array points take part in fitting process |
![]() |
inOutlierSuppression | MEstimator* | |
![]() |
outSegment | Segment2D | |
![]() |
outInliers | Point2DArray |
Description
The orientation of the resulting outSegment is always between 0 and 180 degrees.
Examples
Description of usage of this filter can be found in examples and tutorial: Pins.
![]() |
The resulting outSegment drawn with the input points, inOutlierSuppression = Auto.
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 | Empty array of points in FitSegmentToPoints. |
DomainError | Range exceeds the input point array in FitSegmentToPoints. |
Complexity Level
This filter is available on Advanced Complexity Level.
Filter Group
This filter is member of FitSegmentToPoints filter group.