Mullikin [112] proposes to process the image
twice. First, he applies Danielsson's 4SED algorithm, which can
leave a few errors. Typically, he finds about
of errors for
a
empty disk image. Secondly, he corrects those
errors by applying a modified version of 4SED where the vectors
are remembered and propagated if they are less than
longer than the distance at the current pixel. This requires to
store, for each pixel p, the list of all object pixels at a
distance between D(p) and
.
He calls this
algorithm
VDT, where VDT stands for Vector Distance
Transformation.
Mullikin shows that, with
in N
dimensions,
VDT implements the exact Euclidean DT.
Actually, he finds the following relations between
and the maximum error
,
he finds the adequate
Of course, the increased accuracy has a computational cost.
VDT(0) appears to be 10 times slower than 4SED.
VDT(1) is itself approximately 10 times slower than
VDT(0) for the test images Mullikin considers.
Besides, it has a higher complexity. For
images, 4SED
and
VDT(0) are o(n2), but
VDT(1) is
between o(n2) and o(n3), depending on the image.
Shih and Liu [146] also propose to process the
image twice, first with a variant of Danielsson's 8SED algorithm,
then to detect and correct possible errors. They pre-compute the
possible relative locations
(px-qx,py-qy) for which an error
could occur, and find out that those are extremely rare. For
images, errors can only occur for relative locations
(12,5), (40,12), (48,10), (54,12), (60,13), (70,12), (72,12),
(80,14) and (98,14) with
,
and similar results for the other 8 angular sectors. This means 72
possible relative error locations out of
,
i.e. an
error ratio of only
.
Thanks to this low error ratio, Shih suggests to detect possible errors by checking the distance values found by the approximate DT against a look-up table made from the above list. The very few possible error locations are then submitted to additional computations. The computational cost of the extra detection and correction step is negligible.
Unfortunately, this apparently optimal solution is flawed. In
[26], we show that the possible relative locations
for errors made by the 8SED algorithm are far more numerous than
computed by Shih. Actually, the possible error ratio is close to
for
images, and climbs to more than
for images larger than
.
This makes the look-up
table approach unpractical for error detection.
It should also be noted that the approximate Euclidean DT algorithm of section 2 of [146] does not work. Indeed, the 4-scan algorithm uses twice the same two scanning orders, while Ragnelmam [128] showed that any raster scanning algorithm for EDT should use at least 3 different scanning orders to support propagation in all directions.