Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Fitting » FitArcToPath
![](../../img/icon/FitArcToPoints.png)
FitArcToPath
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Approximates path by an arc using the selected outliers suppression method and considering path's start and end.
Syntax
C++
C#
void avl::FitArcToPath ( const avl::Path& inPath, avl::CircleFittingMethod::Type inFittingMethod, atl::Optional<avl::MEstimator::Type> inOutlierSuppression, atl::Conditional<avl::Arc2D>& outArc )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
inFittingMethod | CircleFittingMethod::Type | ||
![]() |
inOutlierSuppression | Optional<MEstimator::Type> | NIL | |
![]() |
outArc | Conditional<Arc2D>& | Fitted arc or nothing if the computations failed to converge |
Examples
![]() |
The resulting outArc drawn with the input path, inFittingMethod = AlgebraicKasa and inOutlierSuppression = Auto.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Outlier suppression is supported only in algebraic fitting methods. |