Rockwell Automation 5370-CVIM2 Module User Manual

Page 279

Advertising
background image

5

Chapter

Chapter 7

Inspection Tools

7–41

Holes –– This field determines whether to

Include

or

Exclude

“holes” in

contours (for example, white holes in black features) in calculating the
area, X and Y centers, inertia, circumference, and theta of the contours.

Max Results –– This field enables you to enter the maximum number of
measurement results that can be stored in memory. The default setting is
10. The range limits are 0 and 100.

Nearest Neighbor panel –– This selection panel enables you to activate
the nearest neighbor function and select a direction for the “

Nearest

” and

NearestBox

” contour measurement functions.

Done –– When you pick the

button, the system exits back to the

Target

panel.

Here are some additional details about the

Max Results

and

Nearest

Neighbor

functions:

Max Results function –– The

Max Results

number, as noted above, limits

the number of measurements whose results values are stored in memory.
Thus, if the contour window recognizes 15 contours as objects, but

Max

Results

is set to 10, then only the measurement results for objects 1 through

10 can be stored.

The specific results values that are stored depend on which measurement
functions are active. For example, if the

Area

and

Height

measurement

functions are both active (a “

Y

” symbol alongside), the results data from

these two measurement functions will be stored for all objects up to the

Max

Results

number.

The utility of the stored results data is that they can be accessed by math tool
formulas and by the communications message editor. For information about
these uses of the results data, refer to the Math Tool section in Chapter 7,
Inspection Tools, and the CVIM2 Communications Reference Manual.

Nearest Neighbor function –– This function identifies the object that is the
“nearest neighbor” to a target object according to user specified direction
criteria, and it returns two values for the distance, in pixels, between the
target object and its “nearest neighbor,” as follows:

1. The “

Near

” value, which is the distance between the centroid of one

object and the centroid of the nearest object, and

2. The “

NearBox

” value, which is the distance between the closest edges

of one object’s bounding box and the nearest object’s bounding box.

These two values are available as “expanded results” in a math tool formula
that references a window tool that is configured for a contour operation.

Advertising