is performed. Intuition tells us that errors only
happen near pixels that do not propagate.
More formally, let N1 and N2 be two neighborhoods such that
.
Let D1 and D2 be the resulting signed
distance maps generated using N1 and N2 respectively. If
there is a pixel p such that
,
i.e. D1(p)
is inexact and
D1(p)>D2(p), then there is a pixel
such that either
,
either D1(r) was
not propagated using N1.
To prove this, let us first consider that pixels belonging to a
Voronoi polygon VP(q) can only propagate to other locations
belonging to VP(q) with the same q, which is what ordered
propagation aims to achieve. Let us consider q such that
,
i.e. let q be the nearest object pixel to p. Let us
consider the set
(Figure
). We know this set is not empty since at
least one pixel propagated to p using N2 but none did using
N1. Let us suppose that all pixels
have a correct
value and were propagated using N1. Since propagation implies a
strict increase of the distance value, at least one pixel
must propagate to a pixel
,
i.e. a pixel
.
This is impossible since r' would then
have been propagated to p using N1, and D1(p) would then
be correct.
In practice, the ordered propagation of algorithm
allows propagation to locations that are either in the same VP
or in the neighborhood of this VP. Nevertheless, the above proof
remains correct since propagated pixels located in the wrong VP
are corrected before being propagated, and do not propagate
themselves. Q.E.D.