A method of processing images from an imaging device corrects defective pixels in an image acquired with the imaging device. The method includes a step of acquiring position information about continuous defective pixels from the position information about the defective pixels, a first correcting step of correcting the defective pixels with at least one normal pixel adjacent at least one defective pixels based on the position information about the defective pixels and a second correcting step of correcting the continuous defective pixels with a plurality of normal pixels adjacent at least one continuous defective pixels based on the position information about the continuous defective pixels. The second correcting step relies upon a greater number of normal pixels than the first correcting step to correct the defective pixels in a higher precision than the first correcting step.