Patent ID: 8610797

Claim:
An image processing device comprising: a luminance saturation position detection unit configured to detect a luminance saturation position that is a position in a captured image at which a luminance value is greater than a predetermined value; a luminance gradient detection unit configured to detect a luminance gradient around the luminance saturation position; a light source image estimation unit configured to estimate a luminance distribution on an imaging surface, based on (i) an image at the luminance saturation position, (ii) a point spread function (PSF) image which corresponds to the luminance saturation position, and (iii) the luminance gradient, such that the luminance value increases as the luminance gradient increases, the luminance distribution being formed by an object whose image is captured at the luminance saturation position; and an unnecessary light subtraction unit configured to subtract a luminance value of unnecessary light from the captured image by using the luminance distribution.