Patent ID: 7532239

Claim:
An image processing device for processing image data using image data and image generation record information that is associated with the image data and that includes at least information relating to shooting conditions at the time of generation of the image data, the image processing device comprising: an image quality adjuster that, if the image generation record information contains light source information relating to color shift of a light source at the time of generation of the image data, is able to execute white balance adjustment process of the image data based on color of the light source obtained using the light source information, the image quality adjuster adjusting magnitude of the white balance adjustment process based on hue of the light source, wherein the white balance adjustment process includes: (i) a process of analyzing pixel values of a part of pixels making up the image data to determine an amount of color cast indicating deviation of hue of the image data from gray; (ii) a process of determining an amount of the white balance adjustment process based on the amount of color cast; and (iii) a process of executing the white balance adjustment process in accordance with the determined amount; wherein the magnitude of the white balance adjustment process is adjusted by adjusting, based on the hue of the light source, a pre-selected processing parameter used in at least one of the processes (i) and (ii), and wherein the image quality adjuster establishes a condition for selecting pixels for the analysis from among all pixels making up the image data, the condition including that saturation of a pixel is equal to or less than a saturation threshold value, the saturation threshold value being large in a case where hue of the pixel is within a partial range of hue compared to a case where the hue of the pixel is outside the partial range of hue, the partial range of hue including the hue of the light source obtained using the light source information.