180 degree range instead of the usual 0 to 360 degrees. Applying a median filter
reduces the noise due to local random variations, and produces an image with two
predominant brightness values, which correspond to the areas containing the two
diagonal patterns. When automatically converted to a binary image as described in
the section on thresholding, these can be measured to determine the dimensions,
etc., of the regions.
FINDING FEATURES IN IMAGES
The herringbone textile pattern in the preceding figure is a good example of an
image containing many repetitions of the same structure. While each individual
chevron is slightly different from all of the others, due to the individualities of the
fibers and the random noise in the image, the underlying structure is the same. By
averaging together all of the repetitions, a much better image can be obtained of
that structure. This is most easily accomplished by using the Fourier transform. The
spikes of high amplitude in the power spectrum indicate the predominant frequencies
and orientations of the terms that combine to produce the image of the repetitive
structure. In the examples of removal of periodic noise in the preceding chapter,
finding these spikes and eliminating those terms was used as a way to remove the
periodic noise and keep the rest of the image. Now we will do the opposite: keep the
periodic (structural) signal and remove the random superimposed variability and noise.
The power spectrum can be processed like any other image to locate the spikes
and produce a filter that will keep them and remove other frequencies. In many cases
the top hat filter is a good tool for locating the spikes, or points of high amplitude.
In this particular example (Figure 3.39) it is more efficient to remove the spikes by
using a rank filter to perform a grey level erosion (replace every pixel with its
brightest neighbor) in order to generate a background which is then subtracted from
the original. The resulting filter or mask is shown in the figure. Removal of all the
frequencies and orientations that are white in the filter, and keeping those where the
filter is black, allows performing the inverse Fourier transform to obtain an image
in which all of the repetitions of the basic chevron structure have been averaged
together, to produce a low noise average.
The Fourier power spectrum also provides a useful summary of all the periodic
information in the original image that can be used for measurement. The z-bands
in the muscle tissue shown in Figure 3.40 are regularly spaced but awkward to
measure. In order to obtain good precision, many separate locations would have to
be measured and the results averaged. The Fourier transform provides averaging for
the entire image automatically. The distance from the center to the first spike in the
power spectrum gives the frequency (and the orientation) of the fundamental peri-
odicity that is present. The spacing can then be calculated as the width of the original
image divided by that radial distance.
Many images contain multiple repetitions of the same structure, but they are not
regularly spaced and, hence, are not represented by simple spikes in the Fourier
transform power spectrum. Nevertheless, it may be possible to efficiently find them
by using the frequency-space representation of the image. However, an initial under-
standing of the method is probably easiest using the familiar pixel version of the
2241_C03.fm Page 169 Thursday, April 28, 2005 10:28 AM
Copyright © 2005 CRC Press LLC