Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Fitting » FitLineToPoints_LTE
FitLineToPoints_LTE
Approximates points with a line using Least Trimmed Error algorithm.
Syntax
C++
C#
void avl::FitLineToPoints_LTE ( const atl::Array<avl::Point2D>& inPoints, int inSeedSubsetSize, atl::Optional<int> inEvalSubsetSize, avl::Line2D& outLine, atl::Optional<atl::Array<avl::Point2D>&> outLTInliers = atl::NIL, atl::Optional<float&> outLTError = atl::NIL, int& diagIterationCount = dummy(int) )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | const Array<Point2D>& | Input points | |||
inSeedSubsetSize | int | 2 - 10 | 3 | Number of points in one combination for getting a sample line | |
inEvalSubsetSize | Optional<int> | 3 - | NIL | 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 | Optional<Array<Point2D>&> | NIL | Inlying points of the best LTE line | ||
outLTError | Optional<float&> | NIL | The Least Trimmed Error | ||
diagIterationCount | int& | Number of combinations considered |
Errors
Error type | Description |
---|---|
DomainError | Empty array of points in FitLineToPoints_LTE. |