![](bg2.png)
age surface starting from the contour lines. This ap-
proach makes use of the geodesic distance function
obtained by the geodesic propagation.
The morphological approach is automatic in such
a sense that it does not require control points, as clas-
sic morphing methods does. Lack of input parameters
places this method together with well-known cross-
dissolving (Wolberg, 1990). It produces however to-
tally different transformation between images. Cross-
dissolving produces a kind of blending while morpho-
logically interpolated sequence contains the change of
shape of objects on the images.
The paper is organized as follows. Section 2 de-
scribes the classic approach to morphological inter-
polation using the interpolation function. Section 3
presents the proposed approach - the way of apply-
ing this interpolation into graytone images. Section 4
shows some results, and finally Section 5 concludes
the paper.
2 MORPHOLOGICAL
INTERPOLATION FUNCTION
This section recalls the principles of binary inter-
polation using the distance function (Meyer, 1996;
Iwanowski, 2000).
2.1 Binary Object
Binary image i.e. image of pixel values equal either 0
or 1, is usually defined in one of two ways. According
to the first one binary image is a mapping from defi-
nition domain D into {0, 1}. According to the second
one, binary image X is a set of pixels of value 1 (fore-
ground pixels). The complement of this set (X
C
) is
referred to as image background. Image X can consist
of many connected components i.e. subsets of image
pixels such that any two pixels belonging to the same
subset can be connected by a path of pixels of value 1
entirely included in this subset. The single connected
component of binary image will be referred to as ob-
ject. The metamorphosis using interpolation function
allows to morph an object on the initial image another
object on the final one.
2.2 The Interpolator
An interpolator provides a transformation which pro-
duces an interpolated object. It is a function of three
principal arguments: two input objects (initial and fi-
nal) and an interpolation level α. An interpolation
level is a real number α such that 0 ≤ α ≤ 1. In
this paper the interpolator is denoted as: Int
Q
P
(α),
where Q represents the initial binary object, P - the
final one. Shapes of interpolated objects are turning
from a shape of the object Q to shape of the object
P. For α = 0, the interpolated image is equal to the
initial one (Int
Q
P
(0) = Q); for α = 1 - to the final im-
age (Int
Q
P
(1) = P). A sequence of interpolated images
produced for increasing values of α is an interpola-
tion sequence.
2.3 Interpolation Method
The way of defining the interpolator depends on the
mutual relation between input objects. First, the case
of nested objects will be considered where objects lo-
cated on the initial image are included in appropriated
objects on the final image. Later on, the general case
of any two images will be described.
Let X and Y be nested objects (X ⊂ Y). The in-
terpolation function proposed in (Meyer, 1996) is de-
fined as:
int
Y
(X)[p] =
d
Y
(X)[p]
d
Y
(X)[p] + d
X
C
(Y
C
)[p]
, (1)
where X
C
and Y
C
stand for the complements of
binary images X and Y respectively. d
A
(B) stands for
the geodesic distance function describing the distance
to B inside A (B ⊂ A). Geodesic distance is defined
as the length of the shortest path connecting given
pixel in Y \ X with the set X. In digital grid various
ways of computing the distance function are in com-
mon use. The simplest way is propagation in either
4- or 8-connectivity in 2D and 6,18 or 26 connectiv-
ity in 3D. This however is not an Euclidean distance.
The latter could be obtained using specialized algo-
rithms (Vincent, 1991).
The interpolator based on the Eq. 1 is defined as:
Int
X
Y
(α) = T
[α]
(int
Y
(X)), (2)
where T
[α]
stands for the thresholding operator at
level α which sets 1 for graylevels below threshold α,
and 0 otherwise.
The case of two input objects which are not nested
(but which have a non-empty intersection) is split into
two interpolations between nested sets.
Let P and Q be the initial and final objects - nested
or intersected. A final result of the interpolation at
given level α is obtained as an sum of two interpola-
tions of nested objects:
Int
Q
P
(α) = Int
P∩Q
P
(α) ∪ Int
P∩Q
Q
(1− α). (3)
The interpolator in the general case (defined by
the Eq. 3) is based on two interpolators. Each of
VISAPP 2009 - International Conference on Computer Vision Theory and Applications
6