Material for ICCV 2003 Tutorial On
Matching Algorithms
Dan Huttenlocher
and
Phil Torr
Fast distance transform code
for squared Euclidean distance