Multiscale contrast enhancement of medical images