Patent ID: 6947080

Claim:
An image processing device which adjusts white balance by adjusting a gain of input color image data, comprising: a white-balance adjusting unit which executes a white-balance adjusting process by adjusting gains of at least image data of two colors of the color image data; a white-detection unit which, from the color image data that have been subjected to the white-balance adjusting process, detects pixels that are located within a range of a presettable white-detection parameter, and accumulates the image data of the pixels of each color that have been detected so as to output the resulting accumulated value for each color; a white-detection parameter setting unit which calculates a white-detection parameter that sets the narrowest area with the highest luminance under a condition that the accumulated value of each color is not reduced to “0”, and sets the resulting parameter in the white-detection unit; and a white-balance control unit which, based upon the accumulated value for each of the colors in the case when the white-detection parameter that sets the narrowest area with the highest luminance under the condition that the accumulated value of each color is not reduced to “0” has been preset in the white-detection unit, calculates gain values of at least two colors of the white-balance adjusting unit so as to feed-back control the white-balance adjusting unit by setting the resulting values in the white-balance adjusting unit.