1. A method for processing an image frame of pixel data, the image including a plurality of pixels and the pixel data corresponding to the pixels, the method comprising: selecting a first pixel; selecting a plurality of second pixels in the vicinity of the first pixel; computing a weighted average value of the pixel data corresponding to the selected pixels such that the weight associated with each selected pixel is inversely related to that pixel's distance from the first pixel and inversely related to the difference between that pixel's data and the first pixel's data; and adjusting the first pixel data according to the computed weighted average.