A Unified Linear-Time Algorithm for Computing Distance Maps

In this paper we give a simple unified algorithm for computing distance maps. The algorithm runs in O(N 2 ) time for an imput of N×N binary image.