colorimage.py: compute histograms, cdf from colorimage and (optional) mask, apply cdf matching, generate and apply LUTs