Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Fitting » FitLineToPoints
Approximates points with a line using the Least Squares method.
Name | Type | Description | |
---|---|---|---|
![]() |
inPoints | Point2DArray | |
![]() |
outLine | Line2D | |
![]() |
outError | Real |
Examples
![]() |
The resulting outLine drawn with the input points.
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
Error type | Description |
---|---|
DomainError | Empty point array in FitLineToPoints. |
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filters is member of FitLineToPoints filter group.