摘要 |
The number of light sources of original image data and the types of light source are determined (S11). A reference white balance gain which is set for each light source type of the original image data is acquired (S12). An influence rate of each light source type is acquired for each pixel of the original image data and a mixture ratio of the reference white balance gains is acquired on the basis of the influence rate (S13). The reference white balance gains and the mixture ratio are stored in a storage medium so as to be associated with the original image data (S14). It is possible to acquire the white balance gain for each pixel required for multi-area white balance processing for the original image data from the reference white balance gains and the mixture ratio stored in the storage medium subsequently. |