1. A method of improving an image by transforming an intensity histogram thereof, the method comprising operating a data processor for performing the following steps: (a) fitting the intensity histogram to a sum of a plurality of localized functions; (b) using said plurality of localized functions to define a plurality of localized intensity histograms; (c) for each localized intensity histogram, performing at least one image enhancement procedure, thereby providing a plurality of improved localized intensity histograms; and (d) combining said plurality of improved localized intensity histograms, thereby transforming the intensity histogram of the image.