, errors occur
when the source of a pixel differs from the sources of all its
8-direct neighbors. p(0,0) is closer to
q2(x2,y2) than
q1(x1,y1) or
q3(x3,y3), but pixels p1(1,0) and
p3(1,1) are not.
![]() |
In general, since q2 is the source of p, we have
and
. Therefore
he misses many possible errors, including that of Figure
, with q1(17,1), q2(15,8) and
q3(13,11).
Instead, we find the integer solutions of equations
to
by exhaustive search. In order to know if an error
could occur at the relative location (x2,y2), we check eq.
for all integer couples (x1,y1) with
) guarantees that (
) is fulfilled.
If we can find such a couple (x1,y1) satisfying (
),
and if we find another couple (x3,y3) satisfying (
)
and (
) in a similar way, then it is possible that errors
do occur for the relative location (x2,y2).
Applying this exhaustive search for all couples (x2,y2) within
a
range, we find the result of Figure
, where black pixels correspond to possible
error locations. Defining the possible errors ratio as the
percentage of possible error locations among all locations, we
obtain the values of Figure
, i.e.
for a
image, and more than
for images larger
than
.
Obviously, possible locations are not
uncommon. In particular, it means that an ``error locations lookup
table'' approach to detect errors, such as suggested by Shih
[146], is not practical.