Patent ID: 7369699

Claim:
A computer readable medium encoded with a computer program instructions which when executed by a data processing system cause said system to perform a method to transform an electronic image, the method comprising: determining one or more averages of a color channel for the image by excluding one or more first pixels of the image, each of the one or more first pixels being one of: a) substantially white, and b) substantially black; and scaling color signals of the color channel for second pixels of the image according to the one or more averages, each of the second pixels being not one of: a) substantially white, and b) substantially black, wherein the one or more averages comprise at least two of: (a) an average for a center portion of the image, (b) an average for a surrounding portion of the image, and (c) an average for the image, and wherein each of the color signals is scaled with respect to a signal of a selected color in the color channel by a factor which is a function of: the one or more averages and a distance to a selected point in the image.