Euclidean distance transform for multi-label 3D anisotropic images.
copied from cf-staging / edtCompute the Euclidean Distance Transform of a 1d, 2d, or 3d labeled image containing multiple labels in a single pass with support for anisotropic dimensions.