Learning 3D Registration and Reconstruction from the Visual World