Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 3D Fitting »
FitLineToPoints3D_M
Approximates points in 3D with a line using selected M-estimator for outlier suppression.
Syntax
C++
C#
void avl::FitLineToPoints3D_M
(
const atl::Array<avl::Point3D>& inPoints,
avl::MEstimator::Type inOutlierSuppression,
float inClippingFactor,
int inIterationCount,
atl::Optional<avl::Line3D&> inInitialLine,
avl::Line3D& outLine,
atl::Optional<atl::Array<avl::Point3D>&> outInliers = atl::NIL
)
void FitLineToPoints3D_M
(
Point3D[] inPoints,
MEstimator inOutlierSuppression,
float inClippingFactor,
int inIterationCount,
Line3D? inInitialLine,
out Line3D outLine,
out Point3D[] outInliers
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
|
inPoints |
const Array<Point3D>& |
|
|
|
|
inOutlierSuppression |
MEstimator::Type |
|
|
|
|
inClippingFactor |
float |
0.675 - 6.0 |
2.5f |
Multitude of standard deviation within which points are considered inliers |
|
inIterationCount |
int |
0 - |
5 |
Number of iterations of outlier suppressing algorithm |
|
inInitialLine |
Optional<Line3D&> |
|
NIL |
Initial approximation (if available) |
|
outLine |
Line3D& |
|
|
|
|
outInliers |
Optional<Array<Point3D>&> |
|
NIL |
Points matching the computed line |
Errors
Error type |
Description |
DomainError |
Empty point array on input in FitLineToPoints3D_M. |