) into the single
. This masks is applied iteratively over
the whole image. The
|dpx|t,|dpy|t descriptor of a pixel at
iteration t is computed from iteration t-1 by adding the mask
values to the descriptors of the 9 pixels covered by the mask and
choosing the one that gives the minimum Euclidean distance. This
process is iterated until no pixels change anymore.
![]() |
Yamada proves that this algorithm is an exact Euclidean DT.
Indeed, the information is propagated with 8-direct neighborhoods,
and respects the order defined by the
distchess metric. Thus,
in Figure
, pixel r1 is reached by
the propagation front from p2 at least one step earlier than by
the propagation front from p1. More generally, one can prove
that the propagation, from an object pixel p to any of the
pixels q in its zone of influence, is always possible along the
shortest path made of diagonal steps only, followed by vertical or
horizontal steps only.
In [147], Shih and Mitchell consider distance
transformations as a gray-scale mathematical morphology operation.
From a binary image f where object pixels have the value 0 and
non-object pixels the value
,
they compute the gray-scale
distance map
,
by eroding f with a structuring
element k at least as large as the maximum distance in the
image. The weights of this structuring element are the negative of
their distance to the center.
Handling such a large structuring element is of course
inefficient. Thus, they decompose it into smaller
elements as follows:
![]() |
(2.21) |
![]() |
(2.22) |
With this method, the implementation of a
elements requires n(n+1)/2 gray scale erosions. Therefore, it
can only be reasonably efficiently implemented on specialized
parallel pipelined VLSI circuits such as in [1].
With Huang [77], Mitchell adapts his above method to the distE squared Euclidean metric. The decomposition of the structuring element becomes much simpler.
Finally, in [41], Eggers proves that both Huang's and Yamada's parallel DTs can successfully be extended to anisotropic grids and to higher dimensions.