Note that the scaling factor controls the input range to the logarithmic function, whilst
c scales the output over the image quantization range 0 to 255. The addition of 1 is included
to prevent problems where the logarithm is undefined for input (i,j)= 0. The level of
dynamic range compression is effectively controlled by the parameters.