Back to Aurora Vision Studio website

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

FitSegmentToPoints_LTE


Module: FoundationBasic

Approximates points with a segment using Least Trimmed Error algorithm.

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.
Name Type Range Description
Input value inPoints Point2DArray Input points
Input value inRange Range* Determines which array points take part in fitting process
Input value inSeedSubsetSize Integer 2 - 10 Number of points in one combination for getting a sample segment
Input value inEvalSubsetSize Integer* 3 - Number of closest points used for evaluation of a sample segment, or Auto if seed points are to be used
Output value outSegment Segment2D Fitted segment
Output value outLTInliers Point2DArray Inlying points of the best LTE segment
Output value outLTError Real The Least Trimmed Error
Diagnostic input 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 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.