G. Borgefors. Distance transformation in digital images . Computer Vision, Graphics, and Image Processing, 34(3):344-371, 1986. published.