Recovering 3 D Structure From Images and Inertial Sensors