Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Geometry 2D Fitting » FitLineToPoints_TheilSen

FitLineToPoints_TheilSen


Approximates points with a line using TheilSen algorithm, optionally with Siegel's improvement.

Name Type Description
inPoints Point2DArray Input points
inVariant TheilSenVariant Switches between Theil-Sen and Siegel methods
outLine Line2D Fitted line

Applications

Finds a well matching line, ignoring up to 29.3% (TheilSen) or 50.0% (Siegel) outliers. Outliers do have some influence on accuracy.

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 set of points in FitLineToPoints_TheilSen.

Complexity Level

This filter is available on Expert Complexity Level.

Filter Group

This filter is member of FitLineToPoints filter group.