Robust 6-DOF Camera Relocalization in Multi-view Structure from Motion