In many applications, separable algorithms have demonstrated their efficiency to perform high performance volumetric processing of shape, such as distance transformation or medial axis extraction. In the literature, several authors have discussed about conditions on the metric to be considered in a separable approach. In this article, we present generic separable algorithms to efficiently compute Voronoi maps and distance transformations for a large class of metrics. Focusing on path-based norms (chamfer masks, neighborhood sequences), we propose efficient algorithms to compute such volumetric transformation in dimension $n$. We describe a new $O(n\cdot N^n\cdot\log{N}\cdot(n+\log f))$ algorithm for shapes in a $N^n$ domain for chamfer norms with a rational ball of $f$ facets (compared to $O(f^{\lfloor\frac{n}{2}\rfloor}\cdot N^n)$ with previous approaches). Last we further investigate a more elaborate algorithm with the same worst-case complexity, but reaching a complexity of $O(n\cdot N^n\cdot\log{f}\cdot(n+\log f))$ experimentally, under assumption of regularity distribution of the mask vectors.

Caption: Chamfer masks and rational balls: in dimension 2, generator vectors for the mask $M_3−4$ (a), its rational ball (b). Generator vectors for $M_5−7−11$ (c) and its rational ball (d). In dimension 3, rational ball of a chamfer mask obtained using generator vectors $(x,y,z) ın [[−3,3]]^3$ and weights computed following Fouard and Malandain (2005).

@article{coeurjolly20,
author = {Coeurjolly, David and Sivignon, Isabelle},
doi = {10.1016/j.cviu.2020.102925},
journal = {Computer Vision and Image Understanding},
month = {February},
note = {accepted for publication},
title = {Efficient Distance Transformation for Path-based Metrics},
year = {2020}
}