You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » FIL.FitSegmentToPoints_RANSAC
Approximates points with a segment using a RANSAC algorithm.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToPoints_RANSAC ( IList<FilNet.Point2D> inPoints, float inMaxInlierDistance, out FilNet.Segment2D? outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | |||
![]() | inMaxInlierDistance | float | <0.0f, INF> | 3.0f | Distance from the output segment for a point to be considered an inlier. Default value: 3.0f. |
![]() | outSegment | FilNet.Segment2D? |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in FitSegmentToPoints_RANSAC. |
DomainError | Range exceeds the input point array in FitSegmentToPoints_RANSAC. |