Hardware manual

Linear Regression Impact Reference Guide
Datalogic Automation Inc. 3-132
Linear Regression
In the Measurement Drawer
The Linear Regression tool creates a line from a list of points. You can specify whether to ignore points that
lie too far from the created line (outliers).
Outlier Enable and Outlier Distance Threshold
The tool first uses all the input points to perform the line fit. At this point, if Outlier Enable is False, the fit-
ting process stops.
If Outlier Enable is true, and the value of Maximum Deviation is larger than the value of Outlier Distance
Threshold, then the Maximum Deviation Point is considered an outlier and is excluded from the point list.
The fitting process is repeated while iteratively reducing the weights of points outside of the Outlier Dis-
tance Threshold. The tool then recomputes Average and Maximum Deviation using the final fitted line and
all the input points.
Edge Point List A list of the found edge point locations
Distance Segment
List
A list of the measured line segments
Step Segment List A list of the Wide Line ROIs (when Number of Steps is greater than 1)
Number of Edges
Per ROI List
The number of edges found on each ROI.
Input Name What it is
Input Image Linked Image
Tool Origin The tool’s origin relative to the entire image space
Point List The line is fitted to this list of points
Outlier Enable See below for details
Outlier Distance
Threshold
See below for details
Output Name What it is
Success Flag If True, the tool was able to fit a line to the points
Fitted Line x and y coordinates and the angle of the fitted line
Average Deviation The average deviation distance of the points from the fitted line
Maximum Deviation The distance of the furthest point from the fitted line
Maximum Devia-
tion Point
The x and y coordinates of the point furthest from the fitted line
Line Segment The beginning and ending x and y coordinates of the fitted line
Output Name What it is