FitSegmentToPoints


Approximates points with a segment using selected outliers suppression method.

Applications:Finding a locally optimal segment. Good enough when the number of outliers is small.

Syntax

C++
C#
Python
 
def FitSegmentToPoints(
	inPoints: list[Point2D],
	/,
	*,
	inRange: Range | None = None,
	inOutlierSuppression: MEstimator | None = None
)
-> (
	outSegment: Segment2D,
	outInliers: list[Point2D]
)

Parameters

Name Type Default Description
Input value inPoints list[Point2D]
Input value inRange Range | None None Determines which array points take part in fitting process
Input value inOutlierSuppression MEstimator | None None
Output value outSegment Segment2D
Output value outInliers list[Point2D]