Patent ID: 7916347

Claim:
A method of automatic white balancing comprising: receiving at a processor red (R), green (G) and blue (B) pixel data from one or more pixels, the processor including instructions that, when executed by the processor, cause the processor to implement a method comprising: calculating a G/R ratio and a G/B ratio for each of the one or more pixels; plotting said G/R ratios and said G/B ratios in a color space diagram; accumulating an R value, a G value, and a B value for each of said one or more pixels that has said G/R ratio and said G/B ratio inside a predefined white area of said color space diagram; determining an illuminant source by identifying said predefined white area containing a highest number of said one or more pixels; calculating an R value average, a G value average, and a B value average; and determining a gain adjustment based on said R value average, said G value average, and said B value average.