Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Fitting » FitLineToPoints3D_LTE
FitLineToPoints3D_LTE
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Vision3DStandard |
Approximates points in 3D with a line using Least Trimmed Error algorithm.
Syntax
C++
C#
void avl::FitLineToPoints3D_LTE ( const atl::Array<avl::Point3D>& inPoints, int inSeedSubsetSize, atl::Optional<int> inEvalSubsetSize, avl::Line3D& outLine, atl::Optional<atl::Array<avl::Point3D>&> outLTInliers = atl::NIL, atl::Optional<float&> outLTError = atl::NIL, int& diagIterationCount = atl::Dummy<int>() )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | const Array<Point3D>& | ||||
inSeedSubsetSize | int | 2 - 10 | 3 | Number of points in one combination for getting a sample line | |
inEvalSubsetSize | Optional<int> | 3 - | NIL | Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used | |
outLine | Line3D& | Fitted line | |||
outLTInliers | Optional<Array<Point3D>&> | NIL | Inlying points of the best LTE line | ||
outLTError | Optional<float&> | NIL | The Least Trimmed Error | ||
diagIterationCount | int& | Number of combinations considered |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outLTInliers, outLTError.
Read more about Optional Outputs.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty inPoints array in FitLineToPoints3D_LTE. |