A test image has a black bias on a white background. The black bias is a
line set at about 45 degrees to the scan lines of a scanner. Boundary
points of the scanned bias are found. A regression line is calculated
from the positions of the boundary points. Differences in the positions
of adjacent boundary points, together with the slope reciprocal of the
regression line, are used to determine error values. The error values are
compared with a gate value to determine if there are any occurrences of
scan line misalignment.