We consider the average outward flux through a Jordan curve of the gradient vector field of the Euclidean distance function to the boundary of a 2D shape. Using an alternate form of the divergence theorem, we show that in the limit as the area of the region enclosed by such a curve shrinks to zero, this measure has very different behaviours at medial points than at non-medial ones, providing a theoretical justification for its use in the Hamilton-Jacobi skeletonization algorithm of [SBTZ]. We then specialize to the case of shrinking circular neighborhoods and show that the average outward flux measure also reveals the object angle at skeletal points. Hence, formulae for obtaining the boundary curves, their curvatures, and other geometric quantities of interest, can be written in terms of the average outward flux limit values at skeletal points. Thus this measure can be viewed as a Euclidean invariant for shape description: it can be used to both detect the skeleton from the Euclidean distance function, as well as to explicitly reconstruct the boundary from it. We illustrate our results with several numerical simulations.
Keywords: shape, skeletonization,
medial axis, divergence theorem, flux map, distance map
The Divergence Theorem applied to the gradient of the Euclidean
distance function induced by a 2D shape (denoted
F) takes the following form:
Let X be
a shape and let R be a path-connected region where div(F) is
defined. Then, the total divergence of F
over R is equal to the outward flux through the boundary of R, i.e.
Figure 1. Region R of the
plane containing a skeleton curve segment. |
Table 1. Flux values in the limit as a
circular neighborhood shrinks to a point P. |
Figure 3 shows an experiment performed in order to corroborate the theory. The skeleton was obtained by first approximating the AOF through a very small discrete circle everywhere on a lattice and by performing a two-stage thinning based on the AOF values (noting that values near zero suggest non-skeletal points, see [Di] for a more detailed description). Then, the object angle (alpha) for regular points was estimated using the result in Table 1 thus enabling us to reconstruct the two corresponding boundary points.
Figure 3. Bi-tangent
points associated with regular skeletal points: (LEFT)
computed using average outward flux information (see Table
1) and (RIGHT) computed explicitly. |
[Bl] |
H. Blum. Biological shape and
visual science (part 1). Journal of
Theoretical Biology, 38:205--287, 1973. |
[DDS] |
P. Dimitrov, J. N. Damon and K.
Siddiqi. Flux Invariants for Shape.
In Computer Vision and Pattern
Recognition, 2003, v. 1, pages 835--841. IEEE Computer Society,
June 2003. |
[Di] | P. Dimitrov. Flux Invariants for
Shape. M.Sc.
thesis, School of Computer Science McGill University, 2003. |
[SBTZ] |
K. Siddiqi, S. Bouix, A.
Tannenbaum and S. W. Zucker. Hamilton-Jacobi skeletons. International Journal of Computer Vision, 48(3):215--231, 2002. |