Patent ID: 7990419

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: a correction unit adapted to correct the image data on the basis of the image data and the foreign substance information so as to reduce the influence of a shadow of the foreign substance cast in the image data; a storage unit adapted to store a correction log including a plurality of edit entries of the correction process with respect to the same image data corrected by said correction unit and process type information of the plurality of edit entries; a selection unit adapted to select an edit entry from a plurality of edit entries of an arbitrary correction process in the correction log; a deletion unit adapted to delete the edit entry of the correction process selected by said selection unit from the correction log; and a determination unit adapted to determine whether to allow deletion of the edit entry of the correction process selected by said selection unit from the correction log in accordance with the process type information of the selected edit entry, wherein said determination unit allows deletion of the selected edit entry of the correction process from the correction log when the process type information of the selected edit entry includes information of a process of interpolating some region in the image data with an adjusting region to the some region, and said determination unit prevents deletion of the selected edit entry of the correction process from the correction log when the process type information of the selected edit entry includes information of a process of copying the some region in the image data to another region different from the adjusting region.