You are here: Start » FIL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » FIL.FitSegmentToPoints3D_LTE

FIL.FitSegmentToPoints3D_LTE

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

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void FitSegmentToPoints3D_LTE
(
	IList<FilNet.Point3D> inPoints,
	int inSeedSubsetSize,
	int? inEvalSubsetSize,
	out FilNet.Segment3D outSegment,
	NullableRef<List<FilNet.Point3D>> outLTInliers,
	NullableValue<float> outLTError
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<FilNet.Point3D>
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample segment. Default value: 3.
inEvalSubsetSizeint?<3, INF>Number of closest points used for evaluation of a sample segment, or Auto if seed points are to be used. Default value: ftl::NIL.
outSegmentFilNet.Segment3DFitted segment.
outLTInliersFilNet.NullableRef<System.Collections.Generic.List<FilNet.Point3D>>Inlying points of the best LTE segment. Can be null to skip this parameter calculation.
outLTErrorFilNet.NullableValue<float>The Least Trimmed Error. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty inPoints array in FitSegmentToPoints3D_LTE.

Function Overrides

See also