Patent ID: 7305126

Claim:
A method for modifying a color temperature of an image, the image comprising a plurality of pixel data, each pixel datum comprising a plurality of color components, the method comprising following steps: (a) calculating a plurality of sums, one sum for each color component of the plurality of color components, by summing each distinct value of each color component of the plurality of pixel data; (b) calculating an average pixel datum by dividing each sum by a count of the distinct values which were summed to produce the sum; (c) calculating a first average chromaticity value and a second average chromaticity value from the average pixel datum; (d) calculating a first chromaticity value and a second chromaticity value from color components of each pixel datum; and (e) updating the first chromaticity value and the second chromaticity value of each pixel datum according to the first average chromaticity value and the second average chromaticity value.