Patent ID: 8482659

Claim:
An image processing apparatus comprising: an input section, configured to input image data from an image capturing device; an acquisition section, configured to acquire optical transfer functions corresponding to a state of an imaging optical system which forms an image represented by light coming from an object on the image capturing device; a determiner, configured to determine weighting coefficients based on evaluation of a characteristic change against a deviation from an in-focus position of the imaging optical system; a generator, configured to generate a target component and non-target components of blur correction from the image data based on the determined weighting coefficients; a corrector, configured to apply blur correction to the target component using a blur-correction filter generated based on the acquired optical transfer functions; and a synthesizer, configured to generate image data by synthesizing the target component after the blur correction and the non-target components, wherein the acquisition section acquires the optical transfer functions for respective wavelengths at an in-focus position of the imaging optical system and at positions before and after the in-focus position, and wherein the apparatus further comprises a calculator configured to weighted-average the acquired optical transfer functions for respective wavelengths at the in-focus position and at the positions before and after the in-focus position using the determined weighting coefficients and to calculate blur-correction coefficients as the blur-correction filter from the weighted averages corresponding to the in-focus position using weighting coefficients for which a standard deviation of these weighted averages is less than a predetermined threshold.