LineFit Vision Data Access functions

This topic lists the LineFit Vision Data Access functions that get values from a LineFromNPoints function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications..

Note: Each of the following functions references a LineFit data structure as the first parameter.
Function Description

GetChi2(LineFit)

Returns a chi square value, the sum of the squares of the distances from the points to the line.

GetDistance(LineFit, [Index])

Returns the distance between the indexed point and the line.

GetMaxDist(LineFit)

Returns the point that is farthest from the line.

GetMaxDistIndex(LineFit)

Returns the index of the point that is farthest from the line.

GetNPointUsed(LineFit)

Returns the number of points used to compute the line.

GetX(LineFit, Index)

Returns the X-coordinate of the indexed point.

GetY(LineFit, Index)

Returns the Y-coordinate of the indexed point.