We present an O((log log N)2) -time algorithm for computing the distance transform of an N × N binary image. Our algorithm is designed for the common concurrent read concurrent write parallel random access machine (CRCW PRAM) and requires O(N2+ε/log log N) processors, for any ε such that 0 <ε <1. Our algorithm is based on a novel deterministic sampling scheme and can be used for computing distance transforms for a very general class of distance functions. We also present a scalable version of our algorithm when the number of processors is available p2+ε/log log p for some p <N. In this case, our algorithm runs in O((N2/p2)+(N/p) log log p + (log log p)2) time. This scalable algorithm is more practical since usually the number of available processors is much less than the size of the image.
|Journal||IEEE Transactions on Systems, Man and Cybernetics-Part A : Systems and Humans|
|Publication status||Published - 2003|
Datta, A., & Subbiah, S. (2003). Fast Parallel Algorithm for Distance Transform. IEEE Transactions on Systems, Man and Cybernetics-Part A : Systems and Humans, 33(5), 429-434. https://doi.org/10.1109/TSMCA.2003.809173