1. A method for sharpening edges, said method comprising: measuring differences between at least a value associated with a first pixel and a value associated with a second pixel of a plurality of pixels; and applying a sharpening mask to the plurality of pixels, wherein the sharpening mask is a function of at least one of the measured differences, a first value associated with any one of the plurality of pixels, and a second value associated with any other of the pixels, thereby resulting in sharpened pixels.