摘要 |
This invention provides an image-processing device, an imaging device, an image-processing method, and a program whereby, with the required storage capacity reduced, image data on which appropriate multi-area white balancing has been performed can be obtained after the fact. A white-balance gain is obtained for each pixel of raw image data (S11), a white-balance base value is determined (S12), and for each pixel of the raw image data, a white-balance ratio representing the ratio of the white-balance gain for that pixel to the white-balance base value is obtained (S13). Processed image data is obtained by multiplying the value of each pixel of the raw image data by the white-balance ratio for that pixel (S14). Image data comprising the raw image data with a white-balance gain applied to each pixel can be obtained by multiplying the pixel values in the processed image data by the white-balance base value. |