s(x)=K [It (x)-Ir (x)][It (x)+Ir (x)]-1 where s(x) is the slope at point x, It (x) is the intensity of the transmitted component at the point corresponding to x on the associated intensity sensor, Ir (x) is the intensity of the reflected component at the point corresponding to point x on the associated intensity sensor, and K is a constant.