
288 The Image Processing Handbook, Seventh Edition
the mean for the neighborhood surrounding each pixel in the original image. The variance
value is small in uniform regions of the image and becomes large whenever a step or line
is present.
Figure5.55 shows the use of the variance operator to locate the boundaries between grains
in a polished aluminum metal examined in the light microscope. The individual grains exhibit
different brightnesses because their crystallographic lattices are randomly oriented so that the
etching procedure darkens some grains more than others. Grain boundaries are important
in studying metal structures, since their ...