You are here: Start » FIL.NET » Invoke.FitLineToPoints_RANSAC

Invoke.FitLineToPoints_RANSAC

Approximates points with a line using a RANSAC algorithm.

Namespace:Fil
Assembly:FilNet.dll

Syntax

C++
C#
 
public static void FitLineToPoints_RANSAC
(
	List<Fil.Point2D> inPoints,
	Optional<Fil.Range> inRange,
	Optional<int> inMaxOutlierCount,
	float inMaxInlierDistance,
	Optional<int> inIterationCount,
	Conditional<Fil.Line2D> outLine
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.List<Fil.Point2D>
inRangeFtl.Optional<Fil.Range>Determines which array points take part in fitting process. Default value: ftl::NIL.
inMaxOutlierCountFtl.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 line for a point to be considered an inlier. Default value: 3.0f.
inIterationCountFtl.Optional<int><1, INF>42Number of iterations; Auto means that all point pairs will be used. Default value: 42.
outLineFtl.Conditional<Fil.Line2D>

See also