Patent ID: 8164648

Claim:
An image processing apparatus, comprising: a first white balance coefficient value calculation unit configured to calculate a first white balance coefficient value for a first light source that has been set in relation to raw data, using a white detection area that is preset for the first light source and color evaluation values of the raw data; a second white balance coefficient value calculation unit configured to calculate a second white balance coefficient value for a second light source other than the first light source in relation to the raw data, using a white detection area that is preset for the second light source and the color evaluation values of the raw data; an intermediate raw data generation processing unit configured to generate intermediate raw data by applying the first white balance coefficient value to the raw data and to perform post-processing including at least one process of noise removal, edge emphasizing, and bit depth adjustment to the generated intermediate raw data; and a storage unit configured to store as white balance information, information capable of specifying the second white balance coefficient value, and as post-processing information, information relating to the post-processing that has already been performed to the generated intermediate raw data by the intermediate raw data generation processing unit, associated with the post-processed generated intermediate raw data.