PixelLength Result

Applies To
Vision Objects: ArcInspector, Line, LineFinder, LineInspector

Description
Returns the length in pixels of the distance between the starting and ending point of the line for Line objects, and the length of a defect for ArcInspector and LineInspector objects.

Usage

VGet  Sequence.Object.PixelLength[(result)], var
Sequence
Name of a sequence or string variable containing a sequence name.
Object
Name of an object or string variable containing an object name. The object must exist in the specified sequence.
var
Real variable that will contain the value of the result.
result
Result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.

Values
Real number in pixels

Remarks
Unlike the Length result, the PixelLength result returns a value even if calibration has not yet been performed. This is because the units are in pixels and no calibration is needed for pixel unit based calculations. If the user needs a length in millimeters then perform a standalone or robot based camera calibration and use the Length result.

Statistics
For the PixelLength result, the following statistics are available.

PixelLengthMax, PixelLengthMean, PixelLengthMin, PixelLengthStdDev.

For details on how to use statistics, refer to the following manual.
"Vision Guide Software - Using Vision Guide Statistics"

See Also
ArcInspector Object, Length Result, Line Object, LineFinder Object, LineInspector Object