The results for the 4-direct neighborhood and several
neighborhoods are found in table
. In the right
column of this table, we also find the relative location of the
nearest pixel with the same source as the pixel where the error
occurs. Using this table, we know the size of the neighborhood to
consider to produce an exact EDT up to a given distance. For
instance, if we want it to be correct up to
distE(dp)=1000, we
find in table 1 that 1000 is between 674 and 2404. Therefore, a
neighborhood is large enough to ensure an exact result,
but a
neighborhood might be too small.
Unfortunately, increasing the neighborhood size to produce an exact EDT soon leads to a prohibitive computational cost when the image size increases.