Patent ID: 8587712

Claim:
An image processing apparatus arranged to correct, for each pixel of an image, for the influence of aberrations in an optical system in the image captured using the optical system, comprising: storage unit configured to read out and store an image of a partial region of the image; calculation unit configured to calculate a distance, on the image of the partial region, between a pixel of interest of the image of the partial region stored in said storage unit and an image which should be formed at a position of the pixel of interest but has moved due to the aberrations of the optical system, as a correction amount using information of an image height of the pixel of interest and information of the optical system; and correction unit configured to derive a pixel value of the pixel of interest after correction by adding pixel values obtained by multiplying a pixel value of each of a predetermined number of peripheral pixels, center on a position apart from the pixel of interest by the distance calculated by said calculation unit, by an interpolation coefficient of each of the peripheral pixels obtained from a predetermined interpolation function that is a function of the distance from the position apart from the pixel of interest by the distance calculated by said calculation unit; wherein if the peripheral pixels are stored in said storage unit only in a number smaller than the predetermined number, said correction unit changes the interpolation function so as to make a frequency response behavior of the predetermined interpolation function more moderate than that when the predetermined number of peripheral pixels are stored in said storage unit, and derives the pixel value of the pixel of interest after correction by adding pixel values obtained by multiplying a pixel value of each of the peripheral pixels in the number smaller than the predetermined number by the interpolation coefficient of each of the peripheral pixels obtained from the interpolation function.