1. A method of processing a video signal comprising a sequence of frames, each of the frames comprising a plurality of pixels, the method comprising the steps of: determining a neighborhood maximum or a neighborhood minimum for a pixel of interest; comparing the intensity of the pixel of interest to the neighborhood maximum or the neighborhood minimum to determine whether the pixel of interest should be replaced.