Back to Aurora Vision Studio website
	
                
                    
	
		
	You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Fitting » FitLineToPoints_RANSAC (FitLineToPoints RANSAC)
| Module: | FoundationBasic | 
|---|
Approximates points with a line using a RANSAC algorithm.
Applications
Finds a well matching line, but for handling outliers requires a distance threshold that may be difficult to set.
| Name | Type | Range | Description | |
|---|---|---|---|---|
![]()  | 
				inPoints | Point2DArray | ||
![]()  | 
				inRange | Range* | Determines which array points take part in fitting process | |
![]()  | 
				inMaxOutlierCount | Integer* | 0 - ![]()  | 
				Determines how many outlier points can be present to end the search | 
![]()  | 
				inMaxInlierDistance | Real | 0.0 - ![]()  | 
				Distance from the output line for a point to be considered an inlier | 
![]()  | 
				inIterationCount | Integer* | 1 - ![]()  | 
				Number of iterations; Auto means that all point pairs will be used | 
![]()  | 
				outLine | Line2D? | ||
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
| Error type | Description | 
|---|---|
| DomainError | Empty array of points in FitLineToPoints_RANSAC. | 
| DomainError | Range exceeds the input point array in FitLineToPoints_RANSAC. | 
Complexity Level
This filter is available on Expert Complexity Level.
Filter Group
This filter is member of FitLineToPoints filter group visible as RANSAC.

 Expert

