Image processing applications through a variational perceptually-based color correction related to Retinex