Efficient Euclidean Distance Transform Algorithm of Binary Images in Arbitrary Dimensions