You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » FIL.FitLineToPoints_LTE

FIL.FitLineToPoints_LTE

Approximates points with a line using Least Trimmed Error algorithm.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void FitLineToPoints_LTE
(
	IList<FilNet.Point2D> inPoints,
	FilNet.Range? inRange,
	int inSeedSubsetSize,
	int? inEvalSubsetSize,
	out FilNet.Line2D outLine,
	IList<FilNet.Point2D> outLTInliers,
	out float outLTError,
	out int diagIterationCount
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<FilNet.Point2D>Input points.
inRangeFilNet.Range?Determines which array points take part in fitting process. Default value: ftl::NIL.
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
inEvalSubsetSizeint?<3, INF>Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used. Default value: ftl::NIL.
outLineFilNet.Line2DFitted line.
outLTInliersSystem.Collections.Generic.IList<FilNet.Point2D>Inlying points of the best LTE line.
outLTErrorfloatThe Least Trimmed Error.
diagIterationCountintNumber of combinations considered.

Errors

List of possible exceptions:

Error type Description
DomainError Empty array of points in FitLineToPoints_LTE.
DomainError Range exceeds the input point array in FitLineToPoints_LTE.

Function Overrides

See also