A method is provided for automatically adjusting the color of a digital image.
In one aspect, an strength offset is determined to automatically remove gray from
a distorted image. In an other aspect applied independently or after gray removal,
scaling factors are automatically determined to adjust the image to conform to
empirically determined optimal brightening of the image. Using a determination
of color dot maximums and a function which ensures constraint within the dynamic
range, scaling factors are established which correspond to the strength values
of each dot maximum and which are applied to each of the dot's R,G and B to maintain
ratios therebetween and thus maintain the true color. The function for establishing
the scaling factors is interpolated from a nominal function and a target average
strength for the image.