Back to FabImage Library website

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

FitArcToPoints


Header:FIL.h
Namespace:fil

Approximates points with an arc using the selected outliers suppression method.

Syntax

C++
C#
 
void fil::FitArcToPoints
(
	const ftl::Array<fil::Point2D>& inPoints,
	fil::CircleFittingMethod::Type inFittingMethod,
	ftl::Optional<fil::MEstimator::Type> inOutlierSuppression,
	ftl::Conditional<fil::Arc2D>& outArc
)

Parameters

Name Type Default Description
inPoints const Array<Point2D>&
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 points, inFittingMethod = AlgebraicKasa and inOutlierSuppression = Auto.