Next: Computational complexity.
Up: Geodesic Distance Transformation
Previous: Circular propagation algorithm
Accuracy
As mentioned in section
, the accuracy of a
geodesic DT is a trade-off between how precisely it approximates
the Euclidean DT in obstacle free domains and how closely it
follows the obstacles in their corners. The larger Bd, the
better it approximates the Euclidean DT, but large Bd may cut
through corners of the domain.
In this section, we focus on the first part of the trade-off, i.e.
how closely the Bd-geodesic DT can approximate the Euclidean DT
on an obstacle free domain. Let us consider an object pixel q
and domain pixel p. The difference between
diste(p,q) and
D(p) comes from two sources.
First, when the direction of p-q is not supported by the
neighbors in Bd, the distance is approximated similarly to the
chamfer metrics of section
. This creates a
systematic relative error depending on the angle made by p-q.
Secondly, the restrictions imposed by (
)
introduce an additional error on the last segment of the path.
This non-systematic error is null if
,
it is maximum when
dN(pm-1,pm)=1. Let us try to evaluate
it. In figure
, the path from p to q is
composed of two parts, as in (
).
D(pm-1) is
considered as an error free distance d.
dN(pm-1,pm) is
the last segment of the path.
Figure 8.3:
Non-Systematic error
 |
The true value of D(p) is
Dexact(p) = diste(p,q) = d+e.
The computed value of D(p) is
with
.
The error is
.
It
is maximum for a 45o orientation, where
pixel. This non-systematic error is an absolute
error, and its importance fades for large distances.
In order to reduce the non-systematic error, one can use larger
neighborhoods than N4 during the propagation process. In
particular, with N8, the non-systematic error is reduced to
pixel.
Figure 8.4:
Systematic
error
 |
In figure
, we show the systematic errors for 3
geodesic DT algorithms: the bucket sorting algorithm using N4,
and the circular (ordered) propagation algorithm both with N4
and N8. We notice that the use of N8 - suggested to decrease
the non-systematic error - also decreases the systematic error.
Indeed, using N8 in (
) increases the
class of acceptable paths, and adds a few directions to
.
Next: Computational complexity.
Up: Geodesic Distance Transformation
Previous: Circular propagation algorithm
Olivier Cuisenaire
1999-10-05