The Luminance components and the detected edges in the luminance channel are also used in the computations.
These are the results of processing Koffka images generated with a simulated spatially varying and noise-free illuminant.
The original image:
After lightness calculation:
After relaxation:
The original image:
After lightness calculation:
After relaxation: