Patent ID: 8890974

Claim:
A method for calibrating automatic white balance (AWB) in a digital system, the method comprising: capturing an image of a test target under a natural lighting condition; generating a first color temperature reference from the captured image; and outputting AWB configuration data for the digital system, wherein the AWB configuration data comprises the first color temperature reference and a second color temperature reference generated using the test target under simulated lighting conditions, wherein the one or more first color histogram reference and the one or more second color histogram reference are adjusted to compensate for the difference in characteristics of another sensor and wherein compensating histograms comprises: computing first chromaticity coordinates of a gray point in a histogram of the second references; computing second chromaticity coordinates of the gray point based on the R, G, B adjustment values; computing an amount of shifting between the first chromaticity coordinates and the second chromaticity coordinates; and shifting the histogram of the second references by the amount of shifting to generate a histogram of the first references.