Next: Geodesic DT algorithms
Up: Geodesic Distance Transformation
Previous: Geodesic Distance Transformation
Geodesic metrics
As defined in chapter 2, the geodesic distance between two pixels
p and q is the length of the shortest path from p to q.
Suppose
is a path between pixels p1 and
pn, i.e. pi and pi+1 are connected neighbors for
and pi belong to the domain for all i. The
path length l(P) is defined as
 |
(8.1) |
the sum of the neighbor distances dN between adjacent points in
the path. A particular geodesic metric is defined by which
neighbors are considered to be connected and the values of dN
for each pair of connected neighbors.
The simplest metric is the geodesic version of the city-block
distance, used in [122,167,93]. It is defined as
| dN(p,q) = 0 |
if |
p = q |
|
| dN(p,q) = 1 |
if |
diste(p,q)=1 |
|
 |
if |
diste(p,q) > 1 |
(8.2) |
In order to get better approximations of the Euclidean metric,
geodesic chamfer metrics were also used. Piper [122] uses
the 3-4 chamfer metric, Verwer [167] considers a 5-7
metric, and Verbeek [165] uses a
neighborhood with
weights. For instance, for
the 3-4 chamfer metric, this gives
| dN(p,q) = 0 |
if |
p = q |
|
| dN(p,q) = 3 |
if |
diste(p,q)=1 |
|
| dN(p,q) = 4 |
if |
 |
|
 |
if |
 |
(8.3) |
Figure 8.1:
Left: Domain and object - Right: Geodesic DT
with a 3-4 metric.
 |
Such a geodesic DT is illustrated at figure
. We
compute the geodesic distance from the dot in the upper right
corner, under the constraint that the domain is restricted to the
white pixels. The distances are shown using a cyclic grayscale
colormap so that the iso-distance curves are visible. Obviously
this DT is only a coarse approximation of the geodesic Euclidean
DT defined on a continuous domain.
We propose to use a more general definition of the geodesic DT.
Given a ball Bd of radius d, the local distances dN in
(
) are defined as
|
dN(p,q) = diste(p,q)
|
(8.4) |
if
and there is a path
such that p=r1, q=rm,
and
.
Otherwise,
 |
(8.5) |
We call this the Bd-geodesic DT. This means that there is a
direct path between a pixel p and any pixel q in the
neighborhood defined by the ball Bd, provided there is a path
made of direct neighbors only and entirely included in Bd(p),
that connects p and q. This definition allows a large variety
of trade-offs according to the size d. A larger d approximates
the Euclidean DT better in obstacle-less regions. A smaller d
follows the obstacles' shape better.
This definition is a generalization of those used in
[122,167,165,93]. In particular, d=1
corresponds to the city-block metric,
is similar to
the chamfer 3-4 metric and
corresponds to the chamfer
metric used by Verbeek [165]. In
figure
, distance maps using
and d=6
are shown.
Figure 8.2:
Left:
Geodesic DT, ball size
- Right: Geodesic DT, ball
size=6
 |
Next: Geodesic DT algorithms
Up: Geodesic Distance Transformation
Previous: Geodesic Distance Transformation
Olivier Cuisenaire
1999-10-05