Efficient Euclidean Distance Transform Algorithm of Binary Images in Arbitrary Dimensions
fast euclidean distance transformation by propagation using multiple neighborhoods .