Rockwell Automation 5370-CVIM2 Module User Manual

Page 304

Advertising
background image

Chapter 7

Inspection Tools

7–66

Laplace Kernel

The

Laplace

kernel performs nondirectional spatial filtering functions that

sharpen gradients lying along both the X–axis and the Y–axis of the image.

The coefficients in the

Laplace

kernel are arrayed in a 3x3 matrix, as

follows:

–1

0

–1

0

4

–1

0

–1

0

Figure 7.55 illustrates the effect of the

Laplace

kernel on a dark inspected

object on a light background.

Figure 7.55 Example: Effect of Laplace Kernel on Object in Image

Image tool

Inspected

object

In Figure 7.55, the

Laplace

kernel causes the gradients on the all sides of the

inspected object to appear as a very thin line of light pixels, while the pixels
surrounding the gradients were converted to medium gray.

Advertising