Normalization of luminance and contrast in fundus images