Rockwell Automation 5370-CVIM2 Module User Manual
Page 455

Chapter 8
Thresholds, Filters, and Morphology
8–16
When you pick the
button (see Figure 8.10, page 8–14), the
Morph
2
selection panel appears.
In general, the
Morph 1
and
Morph 2
filters can each be used in either
binary or gray scale mode; however, specific inspection tools may restrict
either or both filters to a particular mode.
The remainder of this section discusses the details of the binary and gray
scale morphology functions.
Binary Morphology
As shown in Figure 8.12 (page 8–15), the binary selection panel contains
several boxes and a
button.
The boxes in the binary panel, and the method of selecting the parameters
that they represent, are described briefly as follows:
•
Mode –– This box indicates whether the binary or the gray scale
morphology function is selected.
When you pick this box,
Binary
toggles to
Gray
, or vice versa.
•
Border –– This box indicates whether pixels outside the processing area
are considered white or black.
Black
is the default border selection.
When you pick this box,
Black
toggles to
White
, or vice versa.
•
Stage 1 through Stage 6 –– Each of these boxes enables you to select one
of the binary morphology operations for each stage of the morphology
processor. “
Identity
” is the default selection for each stage.
•
Done –– Use the
button to save the entries in the binary
Morph 1
selection panel entries and exit to the
Thresh/Filter
panel.
Note the six stages of binary morphology filtering shown in Figure 8.12.
These stages operate sequentially; that is, stage 1 performs the first
operation, then stage 2, and so on. In general, you should set the binary
threshold to achieve the best possible image first, then, if necessary, set up
the morphology functions.
When you pick any of the six “stage” boxes, the
Binary Morph
function
selection panel appears, as shown in Figure 8.14 (page 8–17).