Text this: Algorithm for foggy image enhancement based on the total variational Retinex and gradient domain