Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Fitting » FitArcToPoints
FitArcToPoints
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Approximates points with an arc using the selected outliers suppression method.
Syntax
C++
C#
void avl::FitArcToPoints ( const atl::Array<avl::Point2D>& inPoints, atl::Optional<const avl::Range&> inRange, avl::CircleFittingMethod::Type inFittingMethod, atl::Optional<avl::MEstimator::Type> inOutlierSuppression, atl::Conditional<avl::Arc2D>& outArc, atl::Optional<atl::Array<avl::Point2D>&> outInliers = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoints | const Array<Point2D>& | |||
inRange | Optional<const Range&> | NIL | Determines which array points take part in fitting process | |
inFittingMethod | CircleFittingMethod::Type | |||
inOutlierSuppression | Optional<MEstimator::Type> | NIL | ||
outArc | Conditional<Arc2D>& | Fitted arc or nothing if the computations failed to converge | ||
outInliers | Optional<Array<Point2D>&> | NIL | Points matching the fitting arc |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outInliers.
Read more about Optional Outputs.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Outlier suppression is supported only in algebraic fitting methods. |
DomainError | Range exceeds the input point array in FitArcToPoints. |