TY - JOUR

T1 - On computing the exact Euclidean distance transform on rectangular and hexagonal grids

AU - Mehnert, Andrew J H

AU - Jackway, Paul T.

PY - 1999/12/1

Y1 - 1999/12/1

N2 - 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 and Huang and Mitchell, 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 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. In this paper, however, we show that if the hexagonal grid image is embedded in a rectangular grid then Huang and Mitchell's algorithm can be applied, with aspect ratio correction, to obtain the exact EDT on the hexagonal grid.

AB - 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 and Huang and Mitchell, 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 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. In this paper, however, we show that if the hexagonal grid image is embedded in a rectangular grid then Huang and Mitchell's algorithm can be applied, with aspect ratio correction, to obtain the exact EDT on the hexagonal grid.

UR - http://www.scopus.com/inward/record.url?scp=0033345679&partnerID=8YFLogxK

U2 - 10.1023/A:1008352402867

DO - 10.1023/A:1008352402867

M3 - Article

AN - SCOPUS:0033345679

SN - 0924-9907

VL - 11

SP - 223

EP - 230

JO - Journal of Mathematical Imaging and Vision

JF - Journal of Mathematical Imaging and Vision

IS - 3

ER -