Rockwell Automation 5370-CVIM2 Module User Manual

Page 248

Advertising
background image

Chapter 7

Inspection Tools

7–10

Figure 7.7 Examples: Counting Background Objects (Binary)

A

B

Gray Scale Gaging Mode: Foreground Objects

Foreground objects are those objects that lie completely between the first and
last detected edges, and whose pixels are lighter than the adjacent pixels ––
the pixels on both sides of the object. (Note that the edges stand out as a
consequence of the settings for edge detection parameters.)

Example (A) of Figure 7.8 (page 7–11) is a straightforward example in
which four foreground (light) objects correspond to the four white spaces
between the black rectangles.

Example (B) of Figure 7.8 is a more complex example in which four
foreground (light) objects are identified. The first two foreground objects
pertain to the two lightest rectangles, since the pixels within each of these
rectangles are lighter than the pixels adjacent to each rectangle. The second
two “objects” include the first pair; that is, the first two objects are “nested”
inside the second two objects.

Advertising