Retinex-Based Perceptual Contrast Enhancement in Images Using Luminance Adaptation