Image_Approximation_from_Gray_Scale_Medial_Axes
Image_Approximation_from_Gray_Scale_Medial_Axes
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
688 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 198168
689
.x..........x............
I x...
.x. ...x...
*.. x.
.xxxx.. X ..
x....... ........x...
888484.. xxxx.. .. X. x........... ...........
8442222224448. .84
88448 ...8888. .84
.4 4 84....
88.e 8..
.I22448.
...I....
.8...... ....x... xx X .. x.
838. .42448. 84....
...I.... x. x ..x ....X.x
.22
B..
.X. .. ....x .. ... .x...
.42 ...
.x.. x...........x..........
x.. ... ..... x. ....x..
..
.88422. x.. ..
88844..... ....8222 x..X
8442248...... .84248 4.........42
. B ..X. X.
xx. ... ... x. ... .. xx ..
82... .8444488 Kx
.84.884. xx ...
.x..x......
8 44 .
88
...8.224B .xxx.......
x............ ,X
.8. 2424
44I...
X x ... ..x
..x.. ...
x...Xx
X. x. X
48.. I...
....... 42.88................
xxx>
........88 .. 2'2448 ......... ....44 xx. xx. ....................... xxxx.
............ 844448 .. ......422 x.x ...............X
84 22 X
..........44....... ..........42 X X
..88 .............. .. 44
.a...a.. 8.88e..........B X. x..
44...... ........84 .8.........1
44 ........4...........
4288 .44448 .. x x
42406... 4222248 ..
4248 .8..........8422228........... xxx
(a) (b)
Fig. 2. Skeletons of chromosome image (see Fig. 1) obtained using various techniques. (a) Thresholding. 2 indicates
points with value >M/2; 4 indicates points with M/2 > value > M14; 8 indicates points with M/4 > value > M/8. (b)
Thinning.
next apply another local max operation and add AM-,. to TABLE I
obtain If&m+2); and so on, until finally we add Al to get the NuMBERS OF SKELETON POINTS IN FoUR 64 X 64 IMAGES (SEE FIG. 1) USING
VARious TRESHOLDS (M = HIGHEST MMMAT Sum IN IMAGE)
original image IL
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
690 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981
........... x......................
. . .
.xx.........
......................
.x........ ........................
.x.... x.......x...x................
xxxxxxxx........x...................
.x.....xxxxxxx ...... x................
x....xxxx
. ..............x..........
X.......................x.........
..X .....................x..X....... ...... xxx...x..
........................x..X.......
.................X..............X... ......x x........
....X x.........................xx.... ......x ......X
x............................
........... .xxx
....X .x........... x
........... .......
X............................. .x............
...................
.............x...............
x.x........... ..X..................
X.x............
x.. ..
.x.x...........X............
...X........... x.x................... ....x. x.............x x............
X..... .........XX.X.................
X...... X.x....... .x ................ X X. .....x...xx.. .. x..
...... .X........ x ...............
.........X......x
.X . X. x..
.X.
...x ......
..............
(c)
Fig. 2. (Continued.) (c) Line detection (6 conditions). (d) Line detection (5 conditions).
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981 691
TABLE II
NUMBERS OF SKELETON POINTS IN THE FOUR IMAGES AFTER THINNING
OR LINE DETECTION
Line detection
Thinning Six conditions Five conditions
Chromosomes 166 127 208
Terrain 486 324 557
Tank 276 196 264
Blood Cell 277 321 457
III. MODIFICATIONS
A. Thinning
Thinning operations on binary pictures, which repeatedly
delete black border points without locally disconnecting
In a piecewise homogeneous image, the high-valued skeleton their neighborhoods, reduce objects to arcs and curves. This
points should tend to lie on a set of arcs or curves, but these concept has been generalized to gray scale images [9], where
may be somewhat thick (e.g., a region of even width yields each point's gray level is changed to the minimum of its
a skeleton that is two points thick). If we apply a thinning neighbors' gray levels, provided this does not locally "dis-
operation to the skeleton points before we reconstruct, the connect" its neighborhood, where we say that two points
resulting reconstruction should be quite similar to the original are "connected" if there exists a path between them com-
image, except for slight variations in region dimensions. posed of points that are as dark as both of the endpoints.
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
692 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981
(a)
(b) (e)
(c) (f)
(d) (g)
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981 693
44..
88.
B a..
886
B . 88. 6.888. 6. 868884. 88.
8 8488 6..
6 . 8... B
8 ..x x........ x .x. ..x x. X . X.... .. X. X .....
... 8 88. 6 .. 8... 8..... 6. 8 4.
. 8. 488
..........
8 84 x x....... .x . .xX. ............x...
xX.. .x.x....
. . x.
.* *@s *o @o
888 .. 4 .8 8. 8. B. 88. 66 68888.... x ...........X...........X.. 8 ..x....
. . . .x ..
. ...8 . 8. 888 3. 8. 4.. 8..... 6.. 8886 .. 84. 8.88 ..... 4. 8 8
.... 8.8
.. 84.. 88..... .8 ..8 68 8. 4 88.
. 8
.8. . 88. 8. 8 8 6S. 6. 88. 8. 8. ...8... 8.. 4.... S. 84. . S. S. . BS. S.
88... 8... 48........ 886 ... . 88. 66. 4 . 86 .... 88
. 88. B. ... 8... 6. 88684. 86. 6.... 68 8.84. 8 868
4.... 88..8 ......... 6 88 8 3... .6... .....8.
B. as. 488 E8 888688.8 888.88
... x..
88 86
In the first line detection algorithm, all six of these condi- sets of skeleton points obtained in this way, using the six- and
tions were required to hold; in the second algorithm, only five-condition criteria, are displayed in Fig. 2(c) and (d) for the
five of the six conditions were required. Detection of lines chromosome image. These results are quite thin and curve-like.
in directions other than vertical is analogous; see [101 for As Table II shows, the number of skeleton points obtained
further details. We used eight directions in our experiments. using six-condition line detection is usually somewhat less
If P does not satisfy the conditions for any of the directions, than that obtained using thinning, while the number obtained
its new value is 0; if it satisfies them for one or more of the using five conditions is usually somewhat greater, roughly
directions, its new value is the highest of their values. the same as when thresholding alone is used. The skeletons
Since a point and its neighbors can respond to line detectors look much cleaner, but the reconstructions are not as good
in different directions, applying the line detection process to as those using thresholding alone, as we see from Figs. 6 and 7.
SA only once may yield lines that are somewhat thick, and Thus here again, as in the case of thinning, the extra computa-
may not eliminate small noise streaks. We can improve the tional cost and poorer results outweigh any slight improve-
results by iterating the process [ 101. In our experiments, the ments in the degree of compression.
six-condition line detector was iterated twice, and the five-
condition detector three times. C. Effects of Noise
This algorithm was applied in parallel (i.e., using the old To see how noise in the images affects reconstruction from
values of the neighbors) at every point P of the array of SA the MMMAT, we added noise (mean = 0, standard deviation =
values. Applying line detection has the advantage that points 5) to the chromosome picture, and then performed the recon-
not lying on ridge crests can be selectively eliminated. The struction process. The original and the reconstructed images
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
694 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981
...
x........
x........
numbers of points give fair approximations to the original
...... x. xxxx .. x. x.
x.X chromosome image, with much of the noise removed.
X.........
We see from these results that line detection (and thinning)
..................... X .............
................................. X..X.......................... x x
.X...
xx .xx. X...
seems to be more useful when applied after (semi) threshold-
ing, rather than before.
xxx. x.X. xx
X...xx
X X X
.~x.x.x.x.xx.x.
xxx. X IV. RECONSTRUCTION FROM THE GRADMAT
xx. xx
xxx
...X..... The GRADMAT skeleton is quite sensitive to the presence
of noise edges or irregularities in the region edges. In this
X X X X sB section we discuss possible ways to reconstruct an image
from the high score points of its GRADMAT.
Each image point p's GRADMAT value is a score based on
X .6Xb X the gradient magnitudes at pairs of points that have p as their
midpoint. If each point p stores the coordinates and gradient
~ xx x +xS¢.....................................
X magnitudes of all the pairs of points q making contributions
to its score, then one way to reconstruct an approximation
to the image is to "color" all the points between each pair of
q's with the corresponding gradient magnitude. In case a
X X point receives more than one gradient value, the maximum
.. X X X is used. However, the amount of information needed at each
....xx
X. X J6
X..x........X....X.X.....
9. xxx
X .X.x..........
xx X. ( X........ X..
point in order to do this is too large.
.x.n X .e X X
selection
.X..X
mh.x .x areshon. Alternatively, instead of trying to use all pairs of contribut-
X. .....x.....x..x..X. .X X. ing points, we can choose a radius r which provides the strong-
X X X xx
X ...x..X
X
X est response and color all the points in the disk of radius r
.X ..X ..X..x
X.
with the score of p. However, this would certainly produce
inF. X.
x..x .x.......... M/xx.
Thresholding tha thinning
w .X...x.xx...............
X. X...
.~~~~~~~~~c
objects that are too big, as too many points are colored in. A
..... xX......x
.X
.X .....X.
..xx....
modification is to color only a rectangular strip having p at its
center and length 2r where its width and orientation are deter-
mined by the responses from the points on the circle C of
X X .X X XX x
X.....
x.xx
X X radius r centered at p, i.e., all the points at distance r from p,
as follows. Divide C into 16 equal length arcs. For each pair
of opposite arcs, calculate the total score contribution from
the points on them. Let X be the sector angle corresponding
xd lin deeto eve thug
..t
use fe e poixts. esx to the longest consecutive sequence of arcs with nonzero con-
olg.x.
xi.xX ec tributions. The major axis of the rectangle is located in the
direction of X/2. Various widths have been tried in the re-
construction. Fig. 12(b) shows the reconstruction using width
2r sin (X/4). The objects are somewhat too big, and have
irregular boundaries. Fig. 12(c) shows the reconstruction
using width 2r sin (X/8); the objects are smaller, but even
more irregular. Fig. 12(d) is the reconstructed image using
rectangles of length r and width 1, i.e., a line joining the two
opposite edge points on C which give the maximal contribu-
tion to the score of p. The objects are now too small and
quite ragged. Thus we see that reconstruction from the
GRADMAT produces objects whose general shapes are good
approximations of the original objects, but the results are
apeaointl selectonimethood
using differnstrucskeeo are shromo- not as good as those using the MMMAT.
V. COMPRESSION
some picture with most of the noise removed. As we saw in the earlier sections, the MMMAT can be
Fig. 9 shows the skeletons of the image obtained by applying used for image compression, since we can often reconstruct
thresholding, thinning, and line detection to the S,& array ob- good approximations to images from a few A values at a few
tained from the noisy chromosome picture. As can be seen skeleton points. Actually, these selected MMMAT values
from Fig. 9(a), there are too few points with values >M12, provide more than just a compact approximation to the
and there are many isolated points with values between M12 image; they also provide basic information about the sizes
and M14 [compare Figs. 2(a) and 9(a)]. The skeletons ob- and constrasts of regions in the image (a high value Of Ak
tained from thinning and line detection contain curve seg- implies a high-contrast region of width 2k). Thus, image
ments that are not in the "centers" of the objects; rather, they compression is not the main reason for using the MMMAT.
~arise from points whose values are quite low, i.e., <M/4 [see
the points labeled "8" in Fig. 9(a)]. If we modify our skele-
Nevertheless, it is instructive to compare the degree of com-
pression obtained from the MMMAT to the degrees of com-
ton point selection procedure by applying the line detector or pression obtained using various image coding schemes.
the thinning operator to the SA array semithresholded at M14 Since we know the numbers of skeleton points used in each
(i.e., points with values <M/4 are set to zero), we obtain quite of our reconstructions (Tables I-III), this immediately deter-
reasonable skeletons such that most of the isolated points with mines the corresponding degrees of compression. For ex-
values >M/4 are no longer vart of the skeleton: see Fig. 10. ample, in Fig. 3(b), the numbers of skeleton points used to
This is particularly noticeable in the line detection case. The reconstruct the four images are 189, 582, 227, and 462, re-
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 198169
695
xx x x..I.
.....................
...
.x
X
x ....xx.....
X .. x.
..X. xx x.
x.. x.
x x
x.. .x .x. x
.. .xxxxxx X x.
x
X. ... .. X.
x. xx X
x .x X
X
X
x.. x
X ..x x...
(a) (b)
Fig. 10. Skeletons of the noisy chromosome image obtained by applying (a) thinning operator and (b) nonlinear line
detector to the MMMAT sum picture semithresholded at M/4.
4096 X 6
(c) (d) (number of skeleton points) X 22
For the four images, the factors are thus 5.9., 1.9, 4.9, and 2.4.
Fig. 11. Reconstruction of the noisy chromosome imnage of Fig. 8(a).
Similar factors can be readily.computed for the other recon-
(a) Using skeleton points obtained by applying the nonlinear line struction experiments. Note that the four factors just com-
detector to the MMMAT sum picture semithresholded at M/4, and the puted correspond to bit rates of between' 1.0 and 2.5, bits per
largest A value at each of these points. (b) Same as (a) except that im'age point; suc'h rates are comparable with those typ-ic-ally
the three largest A values are used. (c), (d) Same as (a), (b) except obtained in' interpo'lative an'd transform coding schemes 1111.
that the thinning operator is used. The compression factor alone, of course, is inadequate to
determine the value of a coding scheme, since it tells us
spectively, and only one A value is used for each of the.se nothing about the quality of the reconstructed image. Sub-
points. In a 64 X 64 image, specifying the. c oordinates of jective evaluation, which we used informally in the preceding
a skeleton point requires 12 bits of information (6 per co- sections, is a good quality criterion for images intended for
ordinate), specifying which Ak value is used at each point human consumption; but it must he quantified by obtaining
requires about 4 bits, and specifying the A value itself requires quality ratings from a large population of human subjects. It
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.
696 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-3, NO. 6, NOVEMBER 1981
TABLE III varies along such an arc provides information about its shape
NUMBERS OF SKELETON POINTS OBTAINED FROM THE CHROMOSOME IMAGE (width, taper, etc.). Analogously, it should be possible to
OF FIG. 8(a) USING VARIOUS SELECTION TECHNIQUES extract certain types of "shape" information from an unseg-
mented gray level image by inspecting its generalized MAT.
Thresholding at M/4 257
Thinning 275 REFERENCES
Line detection 300 [1] H. Blum, "A transformation for extracting new descriptors of
Thinning after semithresholding at M/4 177 shape," in Models for the Perception ofSpeech and Visual Form,
Line detection after semithresholding at M/4 42 W. Wathen-Dunn, Ed. Cambridge, MA: MIT Press, 1967, pp.
362-380.
[2] A. Rosenfeld and J. L. Pfaltz, "Sequential operations in digital
picture processing," J. Ass. Comput. Mach., vol. 13, pp. 471-
494, 1966.
[3] G. Levi and U. Montanari, "A grey-weighted skeleton," Inform.
(a) Contr., vol. 17, pp. 62-91, 1970.
[4] N. Ahuja, L. S. Davis, D. L. Milgram, and A. Rosenfeld, "Piece-
wise approximation of pictures using maximal neighborhoods,"
IEEE Trans. Comput., vol. C-27, pp. 375-379, 1978.
[5] S. Wang, A. Rosenfeld, and A. Y. Wu, "A medial axis transforma-
(b) tion for grayscale pictures," Comput. Vis. Lab., Comput. Sci.
Center, Univ. of Maryland, College Park, MD, Tech. Rep. TR-
843, Dec. 1979.
[6] J. C. Mott-Smith, "Medial axis transformations," in Picture Pro-
cessing and Psychopictorics, B. S. Lipkin and A. Rosenfeld, Eds.
(c) New York: Academic, 1970, pp. 267-278.
[7] S. Peleg and A. Rosenfeld, "A min-max medial axis transforma-
tion," IEEE Trans. Pattern Anal. Machine Intell., vol. PAMI-3,
pp. 208-210, 1981.
[8] Y. Nakagawa and A. Rosenfeld, "A note on the use of local
min and max operations in digital picture processing," IEEE
(d) Trans. Syst., Man, Cybern., vol. SMC-8, pp. 632-635, 1978.
[9] C. R. Dyer and A. Rosenfeld, "Thinning algorithms for gray-
scale pictures," IEEE Trans. Pattern Anal. Machine Intell.,
Fig. 12. Reconstructions from the GRADMAT. (a) Original image. vol. PAMI-1, pp. 88-89, 1979.
(b) Reconstruction using rectangles. (c) Reconstruction using rect- [10] A. Rosenfeld and A. C. Kak, Digital Picture Processing. New
angies as in (b) but with sector angle reduced by a factor of 2. (d) York: Academic, 1976, pp. 310-314.
Reconstruction using lines. [11] W. K. Pratt, Digital Image Processing. New York: Wiley, 1978,
p. 729.
is customary instead to use crude objective measures of
quality, such as the mean-square error between the original
and reconstructed images [ 11], even though these are not Comments on "Nosing Around the Neighborhood:
very good predictors of judged quality. Let f be the original A New System Structure and Classification Rule for
image, f be the reconstruction, and let ,u, ,u be the means of
f, f, respectively; then the normalized mean-square error is Recognition in Partially Exposed Environments"
defined as PIERRE A. DEVIJVER
12((f - A) - ( t _ p ))2
z(f_ 1s)2
Abstract-Observations are made relative to the definition and gen-
where the denominator is the variance of f. For the four re- eration of a consistent training sample set. We show that the con-
constructions in Fig. 3(b), the values of this error are 0.71, sistency assumption is crucial to the method described in the above
1.01, 2.91, and 0.63, respectively. Note that the highest correspondence,1 and that, in general, the proposed solution to the
value, 2.91, is for the tank image, in which the reconstruction generation problem, namely k-NN editing, fails to produce consistent
has artifacts, as pointed out in the discussion of Fig. 1. sets.
VI. CONCLUDING REMARKS Index Terms-Classifiers with reject option, nearest neighbor tech-
Using a small amount of information, namely, a set of points niques, neighborhood census rule, optimum thresholds, pattern recog-
nition under partial supervision, recognition system design.
having high MMMAT values and a few components that make
strong contributions to these values, good approximations to
gray scale images can be reconstructed. Hence, these points
with their appropriate A values form a compact representa- In the above correspondence,' an extension of the basic
tion of the image. Both the MMMAT skeleton and the recon- k-NN classification rule is outlined to cope with partially
struction computation are relatively inexpensive and comput- exposed environments. The system has the capability of
able in parallel. The examples show that they give better learning originally unknown pattern classes. In short, the
approximations than reconstructions from the SPAN [4] or
GRADMAT. Manuscript received April 8, 1980; revised December 22, 1980.
The MAT is not just a compact representation of a binary The author is with the Philips Research Laboratory, B-1170 Brussels,
image; it also provides important structural and shape in- Belgium.
formation. The MAT points tend to lie on a set of arcs cor- 'B. V. Dasarathy, IEEE Trans. Pattern Anal. Machine Intell., vol.
responding to "lobes" of the set S, and the way the radius PAMI-2, pp. 67-71, Jan. 1980.
Authorized licensed use limited to: Georgetown University. Downloaded on January 11,2022 at 20:43:09 UTC from IEEE Xplore. Restrictions apply.