You are here: Start » AVL.NET » AVS.FitLineToPoints3D_RANSAC Method

AVS.FitLineToPoints3D_RANSAC Method

Approximates points in 3D with a line using a RANSAC algorithm.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitLineToPoints3D_RANSAC
(
	IList<AvlNet.Point3D> inPoints,
	int? inMaxOutlierCount,
	float inMaxInlierDistance,
	int? inIterationCount,
	INullable<AvlNet.Line3D> outLine
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point3D>
inMaxOutlierCountint?<0, INF>Determines how many outlier points can be present to end the search. Default value: atl::NIL.
inMaxInlierDistancefloat<0.0f, INF>3.0fDistance from the output line for a point to be considered an inlier. Default value: 3.0f.
inIterationCountint?<1, INF>42Number of iterations; Auto means that all point pairs will be used. Default value: 42.
outLineAvlNet.INullable<AvlNet.Line3D> This parameter cannot be null.

Function Overrides

See also