Computes the distance transform on a grayscale image. xray.jit.distance uses the L1 norm aka city block distance. See: http://people.cs.uchicago.edu/ pff/dt/ .