Rockwell Automation 5370-CVIM2 Module User Manual

Page 249

Advertising
background image

5

Chapter

Chapter 7

Inspection Tools

7–11

Figure 7.8 Examples: Counting Foreground Objects (Gray Scale)

A

B

Figure 7.9 uses a graph to illustrate the relative gray scale values along the
gage, and to demonstrate that both sets of objects satisfy the definition that a
foreground object is one whose pixels are lighter than the adjacent pixels.
Thus, object 1 is nested in object 3, and object 2 is nested in object 4, in this
example.

Figure 7.9 Example: Identifying Foreground Objects (Gray Scale)

Object 2

Lighter

Darker

Object 1

Object 3

Object 4

Note that in both examples in Figure 7.8 the white areas at each end of the
gage do not qualify as foreground objects, since they are outside the first and
last detected edges on the gage.

Advertising