Patent ID: 8614751

Claim:
An image processing apparatus comprising: a correction value calculation unit configured to calculate a first white balance correction value based on image data captured with flash and to calculate a second white balance correction value based on image data captured without flash; a difference calculation unit configured to calculate a difference in color temperature between the first white balance correction value and the second white balance correction value; a motion amount calculation unit configured to calculate a motion amount of at least one of an object and the image processing apparatus; a correction unit configured to correct the first white balance correction value and the second white balance correction value based on at least one of the difference in color temperature and the motion amount; a development unit configured to develop first image data from the image data captured with flash based on the first white balance correction value corrected by the correction unit and to develop second image data from the image data captured without flash based on the second white balance correction value corrected by the correction unit; a component calculation unit configured to calculate a luminance component of external light and a luminance component of flash based on a luminance value of the image data captured without flash and a luminance value of the image data captured with flash; a combination ratio calculation unit configured to calculate a combination ratio of the first image data and the second image data based on the luminance component of external light and the luminance component of flash; and a combination unit configured to combine the first image data with the second image data according to the combination ratio.