Symmetry (Oct 2020)

Parallel Raster Scan for Euclidean Distance Transform

  • Juan Carlos Elizondo-Leal,
  • José Gabriel Ramirez-Torres,
  • Jose Hugo Barrón-Zambrano,
  • Alan Diaz-Manríquez,
  • Marco Aurelio Nuño-Maganda,
  • Vicente Paul Saldivar-Alonso

DOI
https://doi.org/10.3390/sym12111808
Journal volume & issue
Vol. 12, no. 11
p. 1808

Abstract

Read online

Distance transform (DT) and Voronoi diagrams (VDs) have found many applications in image analysis. Euclidean distance transform (EDT) can generate forms that do not vary with the rotation, because it is radially symmetrical, which is a desirable characteristic in distance transform applications. Recently, parallel architectures have been very accessible and, particularly, GPU-based architectures are very promising due to their high performance, low power consumption and affordable prices. In this paper, a new parallel algorithm is proposed for the computation of a Euclidean distance map and Voronoi diagram of a binary image that mixes CUDA multi-thread parallel image processing with a raster propagation of distance information over small fragments of the image. The basic idea is to exploit the throughput and the latency in each level of memory in the NVIDIA GPU; the image is set in the global memory, and can be accessed via texture memory, and we divide the problem into blocks of threads. For each block we copy a portion of the image and each thread applies a raster scan-based algorithm to a tile of m×m pixels. Experiment results exhibit that our proposed GPU algorithm can improve the efficiency of the Euclidean distance transform in most cases, obtaining speedup factors that even reach 3.193.

Keywords