Distance transform: Calculate distance from each pixel in the map to object. We set a threshold in the project,. treat all the pixels greater or equal. the ...