Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 3D Fitting » FitSegmentToPoints3D
FitSegmentToPoints3D
Approximates points in 3D with a segment using selected outliers suppression method.
Syntax
C++
C#
void avl::FitSegmentToPoints3D ( const atl::Array<avl::Point3D>& inPoints, atl::Optional<avl::MEstimator::Type> inOutlierSuppression, atl::Conditional<avl::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
Error type | Description |
---|---|
DomainError | Empty point array on input in FitSegmentToPoints3D. |