Rockwell Automation 5370-CVIM2 Module User Manual

Page 389

Advertising
background image

5

Chapter

Chapter 7

Inspection Tools

7–151

Profile Window

As noted earlier, the profile window defines the portion of the image field to
be processed for a particular application. The profile tool processes each row
(or column) of pixels in the profile window on the basis of the “

X

” (or “

Y

”)

selection in the

Direction

field, as follows:

When the “

X

” direction is selected, the profile tool calculates the average

gray scale value of each column of pixels, and draws the profile display
along the X axis.

When the “

Y

” direction is selected, the profile tool calculates the average

gray scale value of each row of pixels, and draws the profile display along
the Y axis.

Profile Display

The profile display is a graphic depiction of the profile image, which is
created by calculating the average gray scale value of each column of pixels
(for the “

X

” direction) or row of pixels (for the “

Y

” direction) within the

profile window, and it is superimposed over the corresponding parts of the
image.

The profile display graphs the profile image’s gray scale values (which can
range from 0 to 255) and it provides a resolution of one pixel per gray scale
value. Thus, the potential size of the profile display on the screen is 256
pixels high (for the “

X

” direction), or 256 pixels wide (for the “

Y

” direction).

Accordingly, the profile display’s actual size on the screen is affected by the
camera resolution (it will appear larger when lower camera resolutions are
selected). Also, its position on the screen is adjusted so that it can never
extend beyond the screen.

X Direction Profile Display

When the “

X

” direction is selected, the profile display is oriented with the

variations in profile amplitude appearing along the X, or horizontal, axis of
the image field. In this case, the bottom of the profile display represents the 0
(zero) reference point for gray scale levels ranging from 0 to 255, while the
top of the display represents the average value for each column of the
processed image (maximum value: 255).

Advertising