Window operations – Rockwell Automation 5370-CVIM2 Module User Manual
Page 270

Chapter 7
Inspection Tools
7–32
When you pick the
Operation
field in the window tool edit panel, the
Window Operation
selection panel appears, as shown in Figure 7.28.
Figure 7.28
Window Operation Selection Panel
Table 7.2 lists all of the window operations, along with the applicable
window shapes and mask availability.
Table 7.2 Summary of Window Operations
Window Operation
Window Shape
Mask?
White pixels
All
Yes*
Black pixels
All
Yes*
White contours
All
Yes*
Black contours
All
Yes*
Luminance
Rectangular and arc ring
No
*Not available with a polygonal window
White Pixels; Black Pixels
These two operations count the number of black or white pixels within the
window boundaries. Since the image within the window is binarized, the
workpiece features become either white or black, according to the threshold
settings.
The main purpose of a pixel–counting window operation is to measure the
total area, in pixels, of the specified workpiece feature(s).
Figure 7.29 (page 7–33) is an example that illustrates using a rectangular
window and the white pixel–counting operation to measure the total area of
the 15 white circular features on a black workpiece.
Window Operations