Luminosity and contrast normalization in retinal images