1. A method of processing a pixel of a digital image, the method comprising mapping intensity of the pixel as a smooth, non-linear continuous function of the intensity and minimum and maximum intensities of a local pixel neighborhood of the pixel.