incorporate 2d anisotropic distance transform