The input is now assumed to be a luminosity-based greyscale image, which can be created from a distance field separately.  The main operations are done in RGB, though information is gathered from HLS versions of the image.