color image produces a good binary image of the distribution of nile red stain in the
sample. But there are gaps within the cluster regions that must be filled in, and a few
isolated particles in the other portions of the structure that should be erased.
Applying a closing to fill in the gaps, and an opening to remove the isolated,
scattered features, produces an image in which the total volume fraction and size of
the clusters and the spacing between them can be measured. However, if done with
classic morphological methods this process produces suspicious shapes in which
90- and 45-degree boundary lines are prevalent. The EDM-based erosion and dilation
procedures generate shapes that are much more realistic and better represent the
actual structure present, so that more accurate measurements can be made.
SEPARATING TOUCHING FEATURES
The Euclidean distance map has other uses as well. Watershed segmentation
uses the EDM as the basis for separating touching, convex shapes. This is primarily
useful for section images or surface images in which features are adjacent or overlap
only slightly. It is less useful for arrays of three-dimensional particles because
particles of different sizes may overlap significantly, and small particles may be
hidden by larger ones. The method also has difficulties with jagged or irregular
shapes, and depending on the quality of the EDM used to control the separation,
may cause the breakup of fibers.
Figure 4.8 shows the basic logic behind watershed segmentation. Thresholding the
image of touching particles produces a binary representation in which all of the pixels
touch, and would be considered to be part of a single feature. The grey scale values
generated by the EDM, when represented as a rendered surface, produce a mountain
peak for each of the particles. Imagine that rain falls onto this terrain; drops that strike
the mountains run downhill until they reach the sea (the background). Locations on the
saddles between the mountains are reached by drops running down from two different
mountain peaks. Removing those points separates the peaks, and correspondingly sep-
arates the binary images of the various particles as shown in the figure. Notice that
some boundaries around the edge of the image are not separated, because the informa-
tion is missing that would be required to define the mountain peak beyond the edge.
The edge-touching features cannot be measured anyway, as discussed in the chapter on
feature measurements, so this does not usually create analysis difficulties.
The watershed method works well when particles are convex, and particularly
when they are spherical (producing circular image representations). It happens that
in many cases, due to membranes or physical forces such as surface tension, particles
are fairly spherical in shape and, as shown in Figure 4.9, the separation of the
particles for counting or individual measurement can use the watershed segmentation
method.
There is an older technique that is also used with spherical particles that has
found its principal application in fields other than food science, but which can
certainly be used for food structure images as shown in Figure 4.10. The two methods
for erosion and dilation described earlier in this chapter apply to binary images after
thresholding. A third erosion/dilation procedure was described in an earlier chapter
that is applied to grey scale images. Used, for instance, to remove features from an
2241_C04.fm Page 223 Thursday, April 28, 2005 10:29 AM
Copyright © 2005 CRC Press LLC