A method for processing a digital input image data indexed to represent
positions on a display such that the digital data is indicative of an
intensity value for each position. The intensity value for each position
is adjusted to generate an enhanced value based on retinex theory by
operating only on a luminance channel to essentially eliminate shading
and color distortion problems.