Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Fitting » FitLineToPoints_M
FitLineToPoints_M
Approximates points with a line using selected M-estimator for outlier suppression.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::FitLineToPoints_M ( const atl::Array<avl::Point2D>& inPoints, avl::MEstimator::Type inOutlierSuppression, float inClippingFactor, int inIterationCount, atl::Optional<avl::Line2D&> inInitialLine, avl::Line2D& outLine, atl::Optional<atl::Array<avl::Point2D>&> outInliers = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | const Array<Point2D>& | ||||
inOutlierSuppression | MEstimator::Type | ||||
inClippingFactor | float | 0.675 - 6.0 | 2.5f | Multitude of standard deviation within which points are considered inliers | |
inIterationCount | int | 0 - | 5 | Number of iterations of outlier suppressing algorithm | |
inInitialLine | Optional<Line2D&> | NIL | Initial approximation (if available) | ||
outLine | Line2D& | ||||
outInliers | Optional<Array<Point2D>&> | NIL | Points matching the computed line |