Patent ID: 8149301

Claim:
An image processing device that corrects and interpolates pixel values of defective pixels present upon an image sensor, comprising: a position information storage memory that stores a position of a defective pixel of a first type whose pixel value can be utilized after correction, and a position of a defective pixel of a second type whose pixel value is to be interpolated using pixel values of other pixels, distinguished from one another; a correction amount storage memory that stores a correction amount for the defective pixel of the first type; a correction unit that corrects the pixel value of the defective pixel of the first type according to the correction amount; and an interpolation unit that interpolates the pixel value of the defective pixel of the second type, using the pixel values of pixels including the defective pixel of the first type whose pixel value has been corrected by the correction unit, wherein: the defective pixel of the first type is defined by calculating correction amounts for image data, based upon a plurality of sets of image data that have been photographed while changing at least one of photographic conditions that are exposure amount, color of incident light, temperature of the image sensor, F-value of a lens, and pupil position of the lens, and when defective pixels of the plurality of sets of image data have been corrected based upon the correction amounts, classifying a defective pixel for which a degree, by which a pixel value after correction does not depart from an output value of a normal pixel, does not exceed by more than a predetermined value, as being the defective pixel of the first type; and the defective pixel of the second type is defined by classifying a defective pixel other than the defective pixel of the first type as being the defective pixel of the second type.