I'm attempting to implement the Shih-Wu distance transform algorithm, as described on page 5 of the pdf. It looks fairly simple but I'm hampered by my limited math (or possibly my reading comprehension ability).
I think I have it all except for one question:
In the algorithm, how is R(p)
used? It is meticulously calculated using h(p,q)
and G(p,q)
, and then appears not to be used anywhere.
I'm sure it's explained somewhere in the proof, but the math is opaque to me, and I don't see R mentioned in the lead-in to the algorithm.