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

Andrew J H Mehnert, Paul T. Jackway

Research output: Contribution to journalArticlepeer-review

14 Citations (Scopus)

Abstract

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.

Original languageEnglish
Pages (from-to)223-230
Number of pages8
JournalJournal of Mathematical Imaging and Vision
Volume11
Issue number3
DOIs
Publication statusPublished - 1 Dec 1999
Externally publishedYes

Fingerprint

Dive into the research topics of 'On computing the exact Euclidean distance transform on rectangular and hexagonal grids'. Together they form a unique fingerprint.

Cite this