You are here: Start » AVL.NET » Invoke.FitLineToPoints_RANSAC
Approximates points with a line using a RANSAC algorithm.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void FitLineToPoints_RANSAC ( List<Avl.Point2D> inPoints, Optional<Avl.Range> inRange, Optional<int> inMaxOutlierCount, float inMaxInlierDistance, Optional<int> inIterationCount, Conditional<Avl.Line2D> outLine )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.List<Avl.Point2D> | |||
![]() | inRange | Atl.Optional<Avl.Range> | Determines which array points take part in fitting process. Default value: atl::NIL. | ||
![]() | inMaxOutlierCount | Atl.Optional<int> | <0, INF> | 0 | Determines how many outlier points can be present to end the search. Default value: 0. |
![]() | inMaxInlierDistance | float | <0.0f, INF> | 3.0f | Distance from the output line for a point to be considered an inlier. Default value: 3.0f. |
![]() | inIterationCount | Atl.Optional<int> | <1, INF> | 42 | Number of iterations; Auto means that all point pairs will be used. Default value: 42. |
![]() | outLine | Atl.Conditional<Avl.Line2D> |