Patent ID: 7940310

Claim:
An apparatus for automatic white balance, the apparatus comprising: an area selection module to: identify one or more white pixels as pixels corresponding to any of a plurality of pre-defined white areas of a color space diagram, each pre-defined white area corresponding to a different illuminant source, identify the illuminant source as the illuminant source corresponding to the pre-defined white area having the highest number of the one or more white pixels therein, and calculate a G/R ratio and a G/B ratio of the one or more white pixels; an accumulate-for-averaging module coupled to the area selection module, wherein the accumulate-for-averaging module stores a red (R) value, a green (G) value, and a blue (B) value of each of the one or more white pixels; and a decide-gain-value module coupled to the accumulate-for-averaging module, wherein the decide gain value module determines a gain adjustment and calculates an average R value, an average G value, and an average B value of the one or more white pixels for the gain adjustment for a color channel using white pixels that are within the pre-defined white area corresponding to the identified illuminant source.