Start » Filter Reference » Geometry 2D » Geometry 2D Fitting » FitLineToPoints_LTE
Module: | FoundationBasic |
---|
Approximates points with a line using Least Trimmed Error algorithm.
Applications
Brute-force finding of a line that best matches a subset of the input points. Very efficient against outliers, but possibly slow for bigger subsets.
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 line | |
inEvalSubsetSize | Integer* | 3 - | Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used | |
outLine | Line2D | Fitted line | ||
outLTInliers | Point2DArray | Inlying points of the best LTE line | ||
outLTError | Real | The Least Trimmed Error | ||
diagIterationCount | Integer | Number of combinations considered |
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 FitLineToPoints_LTE. |
DomainError | Range exceeds the input point array in FitLineToPoints_LTE. |
Complexity Level
This filter is available on Expert Complexity Level.
Filter Group
This filter is member of FitLineToPoints filter group.