Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Geometry 2D Fitting » FitLineToPoints_LTE

FitLineToPoints_LTE


Approximates points with a line using Least Trimmed Error algorithm.

Name Type Range Description
inPoints Point2DArray Input points
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

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.

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.

Complexity Level

This filter is available on Expert Complexity Level.

Filter Group

This filter is member of FitLineToPoints filter group.