1. A method for improving quality of images, the method taking as input an image, the method comprising the steps of: a. generating a first list of pixels, the first list of pixels containing zero or more pixels selected from the input image based on a predefined criterion; b. generating a second list of pixels, the second list of pixels containing zero or more pixels selected from the input image based on a predefined criterion; and c. processing the first list of pixels and the second list of pixels to obtain an output image.