Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Fitting » FitSegmentToPoints_LTE
Approximates points with a segment using Least Trimmed Error algorithm.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inPoints | Point2DArray | Input points | |
![]() |
inRange | Range* | Determines which array points take part in fitting process | |
![]() |
inSeedSubsetSize | Integer | 2 - 10 | Number of points in one combination for getting a sample segment |
![]() |
inEvalSubsetSize | Integer* | 3 - ![]() |
Number of closest points used for evaluation of a sample segment, or Auto if seed points are to be used |
![]() |
outSegment | Segment2D | Fitted segment | |
![]() |
outLTInliers | Point2DArray | Inlying points of the best LTE segment | |
![]() |
outLTError | Real | The Least Trimmed Error | |
![]() |
diagIterationCount | Integer | Number of combinations considered |
Applications
Brute-force finding of a segment that best matches a subset of the input points. Very efficient against outliers, but possibly slow for bigger subsets.
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_LTE. |
DomainError | Range exceeds the input point array in FitSegmentToPoints_LTE. |
Complexity Level
This filter is available on Expert Complexity Level.
Filter Group
This filter is member of FitSegmentToPoints filter group.