One aspect of the invention is a method for altering defects in a digital
image. At least a first pixel of a first channel of a digital image is
filtered using digital circuitry to produce a filtered pixel by averaging
the intensity of the first pixel and a plurality of additional pixels in
the neighborhood of the first pixel. At least one of the pixels is
weighted in response to the intensity value of at least one pixel in a
defect channel associated with the digital image. A corrected digital
image is produced using the digital circuitry in response to the filtered
pixel and the first channel of the digital image.