Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Fitting » FitArcToPath

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
Input value inPath const Path& Input path
Input value inFittingMethod CircleFittingMethod::Type
Input value inOutlierSuppression Optional<MEstimator::Type> NIL
Output value 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.