An image processing apparatus corrects a shot image which is captured by an image capturing apparatus including an image sensor having a plurality of pixels arrayed two-dimensionally and on which a shadow of a foreign substance adhering to an optical element placed in front of the image sensor is captured. This apparatus includes an interpolation unit which performs interpolation processing of interpolating a signal of a pixel corresponding to the shadow of the foreign substance with a signal of a neighboring pixel, a designation unit which inputs an instruction to cause the interpolation unit to perform the interpolation processing, and a control unit which causes the interpolation unit to perform the interpolation processing, and when the interpolation unit has not performed the interpolation processing, causes the interpolation unit to re-execute the interpolation processing upon changing a parameter for the interpolation processing or an algorithm for the interpolation processing.