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 | |
|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | ||
![]() |
inRange | Range | None | None | Determines which array points take part in fitting process |
![]() |
inOutlierSuppression | MEstimator | None | None | |
![]() |
outSegment | Segment2D | ||
![]() |
outInliers | list[Point2D] |


