Scaling Laws in Natural Scenes and the Inference of 3D Shape