You are here: Start » AVL.NET » Invoke.FitSegmentToPoints_RANSAC

Invoke.FitSegmentToPoints_RANSAC

Approximates points with a segment using a RANSAC algorithm.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitSegmentToPoints_RANSAC
(
	List<Avl.Point2D> inPoints,
	Optional<Avl.Range> inRange,
	Optional<int> inMaxOutlierCount,
	float inMaxInlierDistance,
	Optional<int> inIterationCount,
	Conditional<Avl.Segment2D> outSegment
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.List<Avl.Point2D>
inRangeAtl.Optional<Avl.Range>Determines which array points take part in fitting process. Default value: atl::NIL.
inMaxOutlierCountAtl.Optional<int><0, INF>0Determines how many outlier points can be present to end the search. Default value: 0.
inMaxInlierDistancefloat<0.0f, INF>3.0fDistance from the output segment for a point to be considered an inlier. Default value: 3.0f.
inIterationCountAtl.Optional<int><1, INF>42Number of iterations; Auto means that all point pairs will be used. Default value: 42.
outSegmentAtl.Conditional<Avl.Segment2D>

See also