On Computing the Exact Euclidean Distance Transform on Rectangular and Hexagonal Grids

In this paper we prove an equivalence relation between the distance transform of a binary image, where the underlying distance is based on a positive definite quadratic form, and the erosion of its characteristic function by an elliptic poweroid structuring element. The algorithms devised by Shih and Mitchell [18] and Huang and Mitchell [7], for calculating the exact Euclidean distance transform (EDT) of a binary digital image manifested on a square grid, are particular cases of this result. The former algorithm uses erosion by a circular cone to calculate the EDT whilst the latter uses erosion by an elliptic paraboloid (which allows for pixel aspect ratio correction) to calculate the square of the EDT. Huang and Mitchell's algorithm [7] is arguably the better of the two because: (i) the structuring element can be decomposed into a sequence of dilations by 3 × 3 structuring elements (a similar decomposition is not possible for the circular cone) thus reducing the complexity of the erosion, and (ii) the algorithm only requires integer arithmetic (it produces squared distance). The algorithm is amenable to both hardware implementation using a pipeline architecture and efficient implementation on serial machines. Unfortunately the algorithm does not directly transpose to, nor has a corresponding analogue on, the hexagonal grid (the same is also true for Shih and Mitchell's algorithm [7]). In this paper, however, we show that if the hexagonal grid image is embedded in a rectangular grid then Huang and Mitchell's algorithm [7] can be applied, with aspect ratio correction, to obtain the exact EDT on the hexagonal grid.

[1]  Frank Y. Shih,et al.  Decomposition of gray-scale morphological structuring elements , 1991, Pattern Recognit..

[2]  J. D. DePree,et al.  Introduction to real analysis , 1990 .

[3]  Luc Vincent,et al.  Exact Euclidean distance function by chain propagations , 1991, Proceedings. 1991 IEEE Computer Society Conference on Computer Vision and Pattern Recognition.

[4]  Gunilla Borgefors,et al.  Distance transformations in digital images , 1986, Comput. Vis. Graph. Image Process..

[5]  Francoise J. Preteux,et al.  New concepts in mathematical morphology: the topographical and differential distance functions , 1991, Optics & Photonics.

[6]  Kiriakos N. Kutulakos,et al.  Fast Computation of the Euclidian Distance Maps for Binary Images , 1992, Inf. Process. Lett..

[7]  Selim G. Akl,et al.  Efficient Algorithms for the Euclidean Distance Transform , 1995, Parallel Process. Lett..

[8]  Jean Serra,et al.  Image Analysis and Mathematical Morphology , 1983 .

[9]  Jean Serra,et al.  Square to hexagonal lattices conversion , 1985 .

[10]  Azriel Rosenfeld,et al.  Sequential Operations in Digital Picture Processing , 1966, JACM.

[11]  Luc M. Vincent New trends in morphological algorithms , 1991, Electronic Imaging.

[12]  RosenfeldAzriel,et al.  Sequential Operations in Digital Picture Processing , 1966 .

[13]  H. Heijmans Morphological image operators , 1994 .

[14]  Tomio Hirata,et al.  A Unified Linear-Time Algorithm for Computing Distance Maps , 1996, Inf. Process. Lett..

[15]  Azriel Rosenfeld,et al.  Digital Picture Processing , 1976 .

[16]  Ling Chen,et al.  A Fast Algorithm for Euclidean Distance Maps of a 2-D Binary Image , 1994, Inf. Process. Lett..

[17]  Richard A. Johnson,et al.  Applied Multivariate Statistical Analysis , 1983 .

[18]  David G. Kirkpatrick,et al.  Linear Time Euclidean Distance Algorithms , 1995, IEEE Trans. Pattern Anal. Mach. Intell..