Patent ID: 8675092

Claim:
An image processing apparatus comprising: correction unit configured to generate, from first image data captured while the flash light is emitted, first developed image data by correcting the first image data with use of a first white balance correction value corresponding to flash light, and second developed image data by correcting the first image data with use of a second white balance correction value corresponding to external light; division unit configured to divide the first image data into a plurality of blocks; combining ratio calculation unit configured to calculate a flash component and an external light component of each of the blocks divided by the division unit from a luminance value of the first image data and a luminance value of second image data captured while flash light is not emitted, and calculate a combining ratio for each of the blocks based on the calculated flash component and external light component of each of the blocks; and combining unit configured to combine the first developed image data and the second developed image data generated by the correction unit according to said combining ratio.