Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Fitting » FitSegmentToPoints3D_RANSAC
FitSegmentToPoints3D_RANSAC
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Vision3DStandard |
Approximates points in 3D with a segment using a RANSAC algorithm.
Syntax
C++
C#
void avl::FitSegmentToPoints3D_RANSAC ( const atl::Array<avl::Point3D>& inPoints, atl::Optional<int> inMaxOutlierCount, const float inMaxInlierDistance, atl::Optional<int> inIterationCount, atl::Conditional<avl::Segment3D>& outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | const Array<Point3D>& | ||||
inMaxOutlierCount | Optional<int> | 0 - | NIL | Determines how many outlier points can be present to end the search | |
inMaxInlierDistance | const float | 0.0 - | 3.0f | Distance from the output line for a point to be considered an inlier | |
inIterationCount | Optional<int> | 1 - | 42 | Number of iterations; Auto means that all point pairs will be used | |
outSegment | Conditional<Segment3D>& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty inPoints array in FitSegmentToPoints3D_RANSAC. |