GRADIENTS
One major reason for interest in the location of features is to discover and
characterize gradients in structure. Most natural materials, and many manufactured
ones, are far from uniform, but instead have systematic and consistent variations in
size, shape, density, etc., as a function of location. In many cases, the direction of
the gradient is perpendicular to some surface or boundary. The complexity of struc-
ture and the natural variation in the size, shape, density, etc. of the individual features,
can make it very difficult to detect visually the true nature of the gradient. Hence,
computer measurement may be required.
Depending on the image magnification and the scale of the gradient, position
may be measured by the Euclidean distance map or by simple X- or Y-coordinates.
If the distance from some boundary or feature within the image is important, the
EDM is the tool of choice. This was illustrated in Figures 4.42 to 4.44 in Chapter
4. For situations such as determining a gradient normal to a surface, if the image
shows a section taken perpendicular to the surface, the Y-coordinate of a feature in
the image may provide the required position information. In either case, plots of
feature property vs. position are used to reveal and characterize the gradient.
As an example, Figure 5.35 repeats a diagram from Chapter 1 (Figure 1.13).
Instead of counting the number of hits made by points in a grid to estimate the vertical
gradient, as done there, procedures based on feature measurement will be used. A
plot of area fraction vs. vertical position can be generated by counting the number
of pixels covered by features at each vertical position (Figure 5.35c). However, that
is not a feature-specific measurement. Visually, the nearest neighbor distance for
each feature changes most strikingly from bottom to top of the image. Reducing
each feature to its ultimate eroded point and measuring the nearest neighbor distance
for each feature produces a graph (Figure 5.35d) that shows this gradient.
All of the features in the preceding example were identical in size and shape, it
is only their distance from their neighbors that varies. More often the variation is
in the size, shape and density parameters of the individual features. In the example
in Figure 5.36, the size of each cell in plant tissue is measured. The procedure used
was to threshold the image, skeletonize the binary result and then convert the skeleton
to a 4-connected line that separates the cells. Measurement of the size (equivalent
circular diameter) of each cell and plotting it against the horizontal position (of the
centroid) produces the result shown in Figure 5.36(e). This plot is difficult to
interpret, because of the scatter in the data. The band of small cells about 40% of
the way across the width of the image is present, but not easy to describe. Interpre-
tation of the data can be simplified by coloring each cell with a grey scale value
that is set proportional to the size value (Figure 5.36d). A plot of the average pixel
brightness value as a function of horizontal position averages all of the size infor-
mation and shows the location of the band of small cells, as well as the overall
complex trend of size with position.
Sometimes the color coding of features is not even required. In the example of
Figure 5.37, an intensity plot on the original image suffices to show the structural
gradient. The image is a cross-section of a bean. There is a radial variation in cell
2241_C05.fm Page 324 Thursday, April 28, 2005 10:30 AM
Copyright © 2005 CRC Press LLC