a method of processing an image includes traversing pixels of an image in a single pass over the image . an inverting function is applied to the pixels . a recursive filter is applied to the inverted pixel values . the filter has parameters which are derived from previously traversed pixel values of the image . a pixel value is combined with a filter parameter for the pixel to provide a processed pixel value for a processed image .