A Geometric Model of Brightness Perception and its Application to Color Images Correction