Processing of a digital image includes applying a function to a plurality of pixels in the image, the function relating a noise statistic to pixel intensity values. By applying the noise statistic function, a noise statistic value is produced for each of the pixels. Each of the pixels is processed with respect to its noise statistic value.