Chapter 21 Vision Control (Option)
21-55
VISMEASURE (Statement)
Function
Measures features in the window (area, center of gravity, main axis angle).
Format
VISMEASURE <Window number>, <Coordinate X>, <Coordinate Y>,
<Processing object>, <Mode>, <Binary lower limit>[, <Binary upper limit>]
Explanation
<Window number> Designates the window number (0 to 511).
<Coordinate X> Designates the X coordinate (0 to 511).
<Coordinate Y> Designates the Y coordinate (0 to 479).
<Processing object> Designates the object to measure (0 or 1).
0: Black (brightness value < binary lower limit, binary
upper limit < brightness value)
1: White (binary lower limit ≤ brightness value ≤ binary
upper limit)
<Mode> Designates the feature to measure.
0: Accumulated brightness, area
1: Accumulated brightness, area, center of gravity (primary
moment)
2: Accumulated brightness, area, center of gravity (primary
moment), main axis angle (secondary moment)
Note (1): The more the features are, the longer the time process
takes.
Note (2): When this command is executed, the process screen 3
(VISWORKPLN 3) is used as a work area and data on the
process screen 3 are not guaranteed. Also, you cannot use
the process screen 3 for processing.
Note (3): For this instruction, a µ
µµ
µVision board (option) is required.
<Binary lower limit> Designates the lower level for binarization (0 to 254
lower limit < upper limit).
<Binary upper limit> Designates the upper level for binarization (1 to 255
lower limit < upper limit).
If this is ignored, 255 will be the default setting.
Center of gravity
(X, Y)
Main axis
Main axis
an
le
Y axis
axis
Comments to this Manuals