From Pictures To 3D : Global Optimization For Scene Reconstruction