Patent ID: 8624996

Claim:
A mobile digital device, comprising: a camera assembly and graphics interface; a communication circuit; a processor; and a memory having code embedded therein for programming the processor to: for a pixel in a digital image, calculate a product of a red component value of the pixel, a green component value of the pixel, and a blue component value of the pixel; in response to the product being greater than a threshold value, determine that the pixel belongs to a set of near-white pixels; determine a gain factor based on red component values of the set, green component values of the set, and blue component values of the set; and based at least in part on the gain factor, adjust at least one of the red component value of the pixel, the green component value of the pixel, and the blue component value of the pixel, and wherein the threshold value is based at least in part on an average RGB product for a plurality of pixels, each pixel in the plurality having an RGB product.