Slope estimation and viewing distance of the observer