Back to Adaptive Vision Library website

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

FitArcToPath


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.