You are here: Start » AVL.NET » AVL.FitLineToPoints_RANSAC(AvlNet.Point2D[], int?, float, int?, AvlNet.Line2D?)
AVL.FitLineToPoints_RANSAC(AvlNet.Point2D[], int?, float, int?, AvlNet.Line2D?)
Approximates points with a line using a RANSAC algorithm.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void FitLineToPoints_RANSAC( AvlNet.Point2D[] inPoints, int? inMaxOutlierCount, float inMaxInlierDistance, int? inIterationCount, out AvlNet.Line2D? outLine )
Parameters
- inPoints
- Type: AvlNet.Point2D
- inMaxOutlierCount
- Type: System.Nullable<System.Int32>
Determines how many outlier points can be present to end the search, or null. - inMaxInlierDistance
- Type: System.Single
Distance from the output line for a point to be considered an inlier - inIterationCount
- Type: System.Nullable<System.Int32>
Number of iterations; Auto means that all point pairs will be used, or null. - outLine
- Type: System.Nullable<AvlNet.Line2D>
Errors
| Error type | Description |
|---|---|
| DomainError | Empty point array on input in FitLineToPoints_RANSAC. |
