Figure 1: Weights and elementary displacements for the
chamfer distances with a neighborhood width of 3, 5 and
7.
Table 1: Distances from O for the chamfer distance with
different neighborhood widths.
Point/Width 3 5 7
A 1 1 1
B 10/3 16/5 19/6
C 7/3 11/5 9/4
D 11/3 18/5 43/12
E 4/3 7/5 17/12
The previous examples can be extended to an arbi-
trary dimension of neighborhood, in order to be more
accurate in the estimation of the Euclidean distance,
with the main drawback that it makes the computation
time increase.
2.2 Associated Convex Sets
Fig. 2 shows DDM computed from a binary image
containing a unique object: the center point. DDM
are given for the Euclidean distance and the discrete
distances defined above. Furthermore sets of equidis-
tant points to the object set at a distance of 50 are
drawn in white in Fig. 2. If we consider that the cir-
cle C
E
(M, R) of center M and radius R, is the set of
equidistant points from M at a Euclidean distance of
R, then, by extension, sets of white points of Fig. 2
are ”circles” of radius 50 for the corresponding dis-
tances. In this way, we can associate the shape of
these ”circles” with the corresponding distance. Ta-
ble 2 summarizes the correspondence. Note that all
of these shapes are regular. Fig. 3 presents an exam-
ple of inscribed ”circles” into a particular shape.
3 INSCRIBED CONVEX SETS
By definition a DDM gives at each point x of the
background its distance to the nearest object. In the
Euclidean case, if DDM(x) is the value reached at
point x, the disk D(x, DDM(x)) of center x and radius
DDM(x) is totally included in the background. Fur-
thermore DDM(x) is the distance from x to the object
set. That means that D(x , DD(x)) is the greatest disk
centered at x and totally included in the background.
This remark can be generalized to the convex sets as-
sociated with the discrete distances defined above. In
Figure 2: DDM for a) the Euclidean distance, b) the Man-
hattan distance, c) the chessboard distance, d) the 3x3
chamfer distance, e) the 5x5 chamfer distance and f) the
7x7 chamfer distance.
this way if X is the shape corresponding to a discrete
distance, X(x, DDM(x)) is the greatest homothetic set
of X centered at x and totally included in the back-
ground.
Let us now consider a set Y and compute a par-
ticular DDM by considering the outside of Y (or its
complementary set) as the object and Y as the back-
ground. The maximum value, DDM(x
max
), reached
on the DDM gives the scale ratio corresponding to an
inscribed set of shape X into Y . Thus, DDM(x
max
) is
the scale ratio applied to the shape X to obtain the in-
scribed homothetic set of X into Y , if we consider that
X is the reference shape at scale 1. Depending on the
shape Y , x
max
is unique or not, in other words, there
can exist several positions to center the inscribed ho-
mothetic set of X into Y .
4 SPATIALLY ADAPTIVE
FILTERING
4.1 Adaptive Sliding Window Size
Sliding windows used for filtering are generally
square-shaped and these squares are oriented at 0
o
.
But such squares are ”circles” for the chessboard dis-
tance. That is why we are going to use a DDM based
on the chessboard distance to design the sliding win-
dow associated with a given point. As the chess-
board DDM allows to determine the greatest homo-
thetic square totally included in the background, it is
sufficient to compute an appropriate binary image de-
scribing objects and background, in order to obtain
window sizes depending on the location and stored in
the DDM.
For grey-level images, the binary image can be
chosen as a thresholded gradient image (TG). In this
INSCRIBED CONVEX SETS AND DISTANCE MAPS - Application to Shape Classification and Spatially Adaptive
Image Filtering
61