Estimating Illuminant Changes by Piecewise Inversion of Cumulative Color Histograms