1. A method for image noise correction, the method comprising, for at least one target pixel having a predefined pixel value: for each pixel in a window of pixels surrounding the target pixel, estimating a weighting factor for that pixel based on the value of the target pixel and at least one pixel value within the window; calculating an average of pixel values for the pixels in the window, each pixel value being weighted by the weighting factor corresponding to the pixel; and assigning to the target pixel a new value that is based on the average of pixel values that is calculated.