Back to FabImage Library website

You are here: Start » Function Reference » Geometry 3D Fitting » FitSegmentToPoints3D

FitSegmentToPoints3D


Header:FIL.h
Namespace:fil

Approximates points in 3D with a segment using selected outliers suppression method.

Syntax

C++
C#
 
void fil::FitSegmentToPoints3D
(
	const ftl::Array<fil::Point3D>& inPoints,
	ftl::Optional<fil::MEstimator::Type> inOutlierSuppression,
	ftl::Conditional<fil::Segment3D>& outSegment
)

Parameters

Name Type Default Description
inPoints const Array<Point3D>&
inOutlierSuppression Optional<MEstimator::Type> Tukey
outSegment Conditional<Segment3D>& Fitted segment or nothing if method failed to converge

Errors

List of possible exceptions:

Error type Description
DomainError Empty point array on input in FitSegmentToPoints3D.