1. A method of processing an image, comprising: obtaining from a memory an image decomposed into a set of scaled images, each being characterized by a different image-scale; for each of at least some scaled images of said set, calculating by an image processor a local contrast within said scaled image; processing, by said image processor, each scaled image of said set using a function of said local contrast, thereby providing a processed scaled image, and storing said processed scaled image in said memory; combining by said image processor at least some of the processed scaled images to provide a combined image; and outputting said combined image to a non-transitory computer readable medium.