Statistics for 3D reconstruction and camera calibration from 2D images