Linear Time Algorithms for Exact Distance Transform
- 163 Downloads
In 2003, Maurer et al. (IEEE Trans. Pattern Anal. Mach. Intell. 25:265–270, 2003) published a paper describing an algorithm that computes the exact distance transform in linear time (with respect to image size) for the rectangular binary images in the k-dimensional space ℝ k and distance measured with respect to L p -metric for 1≤p≤∞, which includes Euclidean distance L 2. In this paper we discuss this algorithm from theoretical and practical points of view. On the practical side, we concentrate on its Euclidean distance version, discuss the possible ways of implementing it as signed distance transform, and experimentally compare implemented algorithms. We also describe the parallelization of these algorithms and discuss the computational time savings associated with them. All these implementations will be made available as a part of the CAVASS software system developed and maintained in our group (Grevera et al. in J. Digit. Imaging 20:101–118, 2007). On the theoretical side, we prove that our version of the signed distance transform algorithm, GBDT, returns the exact value of the distance from the geometrically defined object boundary. We provide a complete proof (which was not given of Maurer et al. (IEEE Trans. Pattern Anal. Mach. Intell. 25:265–270, 2003) that all these algorithms work correctly for L p -metric with 1<p<∞. We also point out that the precise form of the algorithm from Maurer et al. (IEEE Trans. Pattern Anal. Mach. Intell. 25:265–270, 2003) is not well defined for L 1 and L ∞ metrics. In addition, we show that the algorithm can be used to find, in linear time, the exact value of the diameter of an object, that is, the largest possible distance between any two of its elements.
KeywordsDistance transform Euclidean distance Linear time Digital boundary Diameter Digital geometry
Unable to display preview. Download preview PDF.
- 3.Cuisenaire, O.: Distance transformations: fast algorithms and applications to medical image processing. Dissertation (1999) Google Scholar
- 4.Grevera, G.J.: Distance transform. In: Suri, J.S., Farag, A. (eds.) Parametric and Geometric Deformable Models: An Application in Biomaterials and Medical Imagery. Springer, Berlin Google Scholar
- 12.Tustison, N.J., Siqueira, M., Gee, J.C.: N-D linear time exact signed Euclidean distance transform. Insight J., January–June (2006). http://hdl.handle.net/1926/171
- 15.Ge, Y., Fitzpatrick, J.M.: On the generation of skeletons from discrete Euclidean distance maps. IEEE Trans. PAMI 18(11), 1055–1066 (1996) Google Scholar
- 17.Souza, A., Udupa, J.K.: Automatic landmark selection for active shape models. Proc. SPIE Med. Imaging 5747, 1377–1383 (2005) Google Scholar
- 22.Intel Pentium D 800 Processor 800 Sequence Datasheet (download.intel.com/support/processors/pentiumd/sb/307506.pdf), 2006