1. A method comprising: receiving, from an image sensor, a target digital image contaminated by noise of unknown magnitude that is represented by a reference digital image; and applying a process that uses statistical analysis of the target digital image and of the reference digital image, to estimate a magnitude of the noise for at least some pixels of the target digital image.