1. A method of correcting defects in digital images, comprising: using a processor; acquiring a set of images with a device including a lens and image sensor; computing a gray-scale version of a current image of the set of images; computing a local mean of the current image computing a difference image based on differences between the gray-scale version and local mean version of the current image; computing a current binary map that results after thresholding the difference image; growing a gray map by adding to the current binary map with subsequent binary maps of subsequent images of the set; generating a final binary map; and correcting a defect within a digital image based on the final binary map.