Initialisation and Termination of Active Contour Level-Set Evolutions
Initialisation and Termination of Active Contour Level-Set Evolutions
N = ru (1.3)
1 Introduction = r2 u (1.4)
Level-set methods have become powerful tools for many ge- In this paper we focus on the somewhat less discussed issues
ometric problems in the analysis of image data in 2D and 3D of initialising the evolution and terminating the evolution
[11, 10, 14, 5]. Level-set methods are generally useful when automatically. The non-parametric nature of level-set rep-
one has to solve an optimisation problem with respect to an resentations removes the need for manual initialisation that
interface. To that extent, one assigns a cost C ( ) to a given is required by parametric methods (e.g. B-spline snakes [3]).
interface . In this paper, we will focus on the problem of Using the geodesic contour detection as an example, we dis-
minimising a certain geodesic length in two dimensions and cuss various options for initialisation and evolution-control
write G for the cost in the geodesic case. The idea is then which are of practical use.
to compute the variation of the cost for deformations of the Section 2 is a brief review of the geodesic problem us-
ing the Riemannian length as cost function which we use
Supported by the EPSRC, the Cambridge European Trust and the
DAAD (Germany) 1 is a continuous, real valued function
throughout the paper. Various options for initialising level- The formulation as Riemannian length minimisation
set functions are then introduced in Section 3. Section 4 problem implies that the contour localisation deviates
on automatic termination completes the theoretical introduc- from the ‘true edge location’ and lies slightly inside
tion. This is followed by sections on results (Section 5) and convex areas and outside concave areas. The balloon
conclusions (Section 6). force can be used to adjust the location of the con-
tour, provided the object’s curvature is known approxi-
mately. In fact this is one of the original motivations for
2 Geodesic Active Contours adding the term [4, 6].
It has been known for some time [2, 8, 10] that the problem
of contour detection can be cast into the problem of min- 3 Initialisation of Level-Set Evolu-
imising a Riemannian length functional that is induced by
the image. tions
In order to define the cost functional, one starts by intro-
ducing a local measure for edges g (with g (x) 2 [0; 1℄). A
The initialisation of level-set evolutions requires an initial
level-set function. By demanding the signed distance con-
simple example2 is given by [8, 10]:
straint, one can equivalently prescribe an initial orientated
1
g := (2.1) closed curve (or collections of simple closed curves) that
1 + a jrI j2 does not self-intersect. This uses the fact that implicit curves
where I is the image smoothed with a Gaussian of scale are in one-to-one correspondence to signed distance func-
parameter and a is a sensitivity constant to image contrast. tions [7].
Interpreting g as Riemannian metric for the image, we can In this section we discuss two sources of initialisation:
see that we are using the Euclidean length measure in the The first one embarks on a priori knowledge and can be used
absence of edges (g 1) but use a smaller length-measure to initialise evolutions independent of any previous evolu-
in areas of large gradient values. tion. The second initialisation is indirect in that it relies on
The global cost associated with is the Riemannian previous evolutions. The termination criteria of Section 4
length: is of particular relevance to the indirect case (Section 3.2)
Z where the end of one evolution starts a secondary evolution.
G( ) = g (2.2)
where the standard Lebesgue measure is used to integrate the 3.1 Direct Initialisation
function g over .
In the most important example, the initial curve consist of
The velocity function which asymptotically minimises
the outline of an image and reflects the assumption that the
G can be shown to be [8, 10]: objects of interest are fully contained in the image. However,
= div g jr1uj ru + g (2.3) we discuss more general options and demonstrate in partic-
ular the case of a single infinite line that allows us to capture
where is the coefficient of the so-called “balloon force” [8, non-closed contours such as sky-lines.
10]. We derive (2.3) in Appendix A for the signed distance A rich set of signed distance function initialisations can
case: be obtained by transforming and combining two very basic
= hrg; rui + g r2 u + (2.4) distance functions, the ones corresponding to a point and a
and refer to [8] for the connection to parametric snakes that line.
has been discussed in the literature. The numerical imple-
mentation of (2.4) for the finite element representation has 3.1.1 Elementary and Transformed Shapes
been recently introduced in [12].
We define the signed distance functions of a point and a line:
The “balloon force” term does not arise from the cost min-
imisation but is useful in certain situations: point (x) := jxj (3.1)
It can be used to accelerate the convergence since it line (x) := hN; xi (3.2)
adds a velocity to the interface motion in the ab-
sence of any edges (g 1) and vanishes at ideal edges where N 2 S denotes the ‘outward’ normal of the region
1
(g 0). separated by the line. More interesting examples can be
formed by transforming the space ( R2 ) and the levels:
There are applications where the cost functional is lo-
cally flat (e.g. sky-line initialisation of Figures 5 and Spatial Transformations: Signed distance functions
6). Here the “balloon force” is vital to drive the evolu- are symmetric under the Special Euclidean Group
tion towards the desired minimum (and can be turned SE(R2 ) and scaling: If is a signed distance map,
off subsequently to refine the contour). – (x) := (x T ) is the signed distance map cor-
2 Further examples are known in the context of diffusion filtering [13]. responding to a translation T 2 R2 of the shape.
– (x) := (Rt x) is the signed distance map cor- suggested in [12] for nested contour detection: The gen-
responding to a rotation (with fixed origin) by eral strategy is use the knowledge of a detected local
R 2 SO(2) of the shape. minimum to drive the subsequent evolution into a dif-
– (x) := s ( 1s x) is the signed distance map cor- ferent local minimum. The idea is to use two different
responding to a scaling of the shape by a factor Riemannian metrics as illustrated in Figure 1: The ini-
s 2 R. tial interface
R 0 is first attracted to the local minima 1
of G = g . Subsequently, the evolution with a modi-
Level Transformations: Signed distance functions are fied cost G = R g is used to move the interface beyond
symmetric under shift and inversion of levels: If is a the already detected minima. Where the detected inter-
signed distance map, face 1 is used to define g:
– (x) := (x) d is the signed distance map cor- g(x) =
1 g (x) if 1 (x) < 0 (3.3)
responding to an expansion of the shape’s interior 1 else
by a distance d in normal direction.
– (x) := (x) is the signed distance map corre- Global distance to contour map: The numerical rep-
resentation is, for computational efficiency, restricted to
sponding to the same shape but with an inversion
the vicinity of the interface . However, once the inter-
of inside and outside (complement).
face is located, one can use a subsequent evolution with
By applying this transformations to the point and line, one constant normal speed ( = 1) to obtain the global con-
obtains general (infinite) lines and general circles. The use tinuation of the signed distance map (see Figure 7).
of a single line as initial shape is illustrated in Figures 5 and
6.
Multi-resolution techniques: In the finite element rep-
resentation used, it is natural to consider refinements of
elements (Figure 2). Using initially a coarser resolution
3.1.2 Combining Shapes speeds up the convergence which is relevant for time
Implicit shapes can be combined (union and intersection) by critical applications (e.g. tracking). In this paper we re-
corresponding min/max operations on the distance functions. strict ourselves to consider techniques that change the
Applying the transformations of the previous section to com- resolution for the entire domain. More sophisticated
bined shapes, one can generate a manifold of further initiali- adaptive methods are also possible where one can use
sation shapes. the curvature to drive a sub-division process.
Γ1
If 1 and 2 are signed distance maps,
Union: (x) := min(1 (x); 2 (x)) corresponds to
g 1−g
the union of the interiors described by 1 and 2 .
1−g
Intersection: (x) := max(1 (x); 2 (x)) corre- g
sponds to the intersection of the interiors described by
1 and 2 . g
1−g
g 1
When combined with the level-inversion, this means that
we can implicitly perform all usual operations that are known
from set-theory on our shapes (complement, subtraction,
union, intersection). Figure 1: Modification of the Riemannian Metric for the
In particular, we can now easily obtain signed distance Detection of General Local Minima: The original metric
functions of arbitrary closed polygons. For instance, we can g (left) leads initially to the detection of contour 1 and is
obtain the outline of an image by intersecting the four lines replaced temporarily by g (right) to move the interface away
of the image-borders (with normals pointing away from the from the already detected minimum.
image region).
u0 u1 u0 u1 u0 u1
600
500
400
300
200
100
0
0 20 40 60 80 100 120 140 160 180
t
ÆG
Æu = (A.6) [14] A.J. Yezzi and S. Soatto. Stereoscopic segmentation.
In Proc. IEEE Int. Conf. on Computer Vision, volume I,
and hence is the steepest decent in the space of normal pages 56–66, 2001.
deformations (and vanishes at local minima of G).
[15] O.C. Zienkiewicz and K. Morgan. Finite Elements &
4 We have assumed that v is sufficiently small so that no self-intersections Approximation. John Wiley & Sons, NY, 1983.
occur. This is justified since we are looking at the infinitesimal case here.