Contrast Enhancement Based on a Morphological Rational Multiscale Algorithm