Patent ID: 8238690

Claim:
An image processing apparatus which corrects input image data on the basis of the image data and foreign substance information including information associated with a position and a size of a foreign substance adhering near an image sensor in an image capturing apparatus which has captured the image data, comprising: an acquisition unit adapted to acquire the foreign substance information; a correction unit adapted to correct the captured image data on the basis of the captured image data and the foreign substance information acquired by said acquisition unit so as to reduce an influence of a shadow of the foreign substance cast in the captured image data by interpolating the captured image data corresponding to a region of the foreign substance with the captured image data corresponding to a region surrounding the foreign substance; a uniformity determination unit adapted, after said acquisition unit acquires the foreign substance information, to divide the captured image data into a plurality of blocks and to determine the uniformity of blocks in which a number of effective pixels is equal to or larger than a predetermined pixel number, wherein the effective pixels are pixels inside the block but not contained in the foreign substance region; and a control unit adapted to, when said uniformity determination unit determines that the captured image is a complicated pattern image, prevent said correction unit from correcting the image data, and when said uniformity determination unit determines that the captured image is a uniform image, cause said correction unit to correct the image data.