Image tool – Rockwell Automation 5370-CVIM2 Module User Manual

Page 295

Advertising
background image

5

Chapter

Chapter 7

Inspection Tools

7–57

The object number that replaces the “#” sign must conform to these two
requirements:

1. The object number must be a constant non–zero, positive integer.

2. The object number must be equal to, or less than, the maximum number

appearing in the window.

When the “

Multiple

” operation is selected, the “#”sign must be retained in

the formula (replacing or removing the “#” will cause incorrect results). For
details about the

Multiple

operation mode, see the math tool example,

Example: Using a Single Math Tool to Generate Multiple Results, on page
7–144.

Also, see the Example: List Processing section on page 7–141 for an
additional example of using the “#” in a math formula.

**These expanded statistical results are available only when a tool is enabled
for statistics operations, as indicated by a checked

Statistics

box in the tool’s

Options

selection panel.

NOTE: Any formula that references an object (in the contour window)
whose number is equal to or lower than the

Max Results

setting in the

Target

panel, but is not found in the window, will cause the math tool to fail.

For example, if the

Max Results

setting is 10 and the contour window finds

only five objects, the math tool will fail if the formula references objects 6
through 10.

An image tool performs processing operations on a portion of the image,
using spatial (geometric) transformations, convolution, or image arithmetic,
along with multiple stages of morphology. It temporarily stores the processed
image in a destination image buffer, which can be accessed by tools that
follow the image tool in the toolset edit panel.

Figure 7.49 (page 7–58) is an example that illustrates how an image tool
could be set up, using source and destination images, to provide a processed
image to a tool that follows it in the toolset edit panel.

In this example, the image tool (

Tool 3

) designates

C1

(under the “

S1

heading) as its image source and

P1

(under the “

Dest

” heading) as its

destination buffer. The following window tool (

Tool 4

) designates

P1

–– the

processed image –– as its image source. (Note that the gage tool (

Tool 1

) and

the first window tool (

Tool 2

) cannot receive the image from the image tool,

since they both precede the image tool in the toolset edit panel.)

Image Tool

Advertising