# Distance Transform in Parallel Logarithmic Complexity

### Majid Banaeyan, Walter Kropatsch

#### 2023

#### Abstract

Nowadays a huge amount of digital data are generated every moment in a broad spectrum of application domains such as biomedical imaging, document processing, geosciences, remote sensing, video surveillance, etc. Processing such big data requires an efficient data structure, encouraging the algorithms with lower complexity and parallel operations. In this paper, first, a new method for computing the distance transform (DT) as the fundamental operation in binary images is presented. The method computes the DT with the parallel logarithmic complexity O(log(n)) where n is the maximum diameter of the largest foreground region in the 2D binary image. Second, we define the DT in the combinatorial map (CM) structure. In the CM, by replacing each edge with two darts a smoother DT with the double resolution is derived. Moreover, we compute n different distances for the nD-map. Both methods use the hierarchical irregular pyramid structure and have the advantage of preserving topological information between regions. The operations of the proposed algorithms are totally local and lead to parallel implementations. The GPU implementation of the algorithm has high performance while the bottleneck is the bandwidth of the memory or equivalently the number of available independent processing elements. Finally, the logarithmic complexity of the algorithm speeds up the execution and suits it, particularly for large images.

Download#### Paper Citation

#### in Harvard Style

Banaeyan M. and Kropatsch W. (2023). **Distance Transform in Parallel Logarithmic Complexity**. In *Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,* ISBN 978-989-758-626-2, pages 115-123. DOI: 10.5220/0011681500003411

#### in Bibtex Style

@conference{icpram23,

author={Majid Banaeyan and Walter Kropatsch},

title={Distance Transform in Parallel Logarithmic Complexity},

booktitle={Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,},

year={2023},

pages={115-123},

publisher={SciTePress},

organization={INSTICC},

doi={10.5220/0011681500003411},

isbn={978-989-758-626-2},

}

#### in EndNote Style

TY - CONF

JO - Proceedings of the 12th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM,

TI - Distance Transform in Parallel Logarithmic Complexity

SN - 978-989-758-626-2

AU - Banaeyan M.

AU - Kropatsch W.

PY - 2023

SP - 115

EP - 123

DO - 10.5220/0011681500003411