Structure from motion using the extended kalman filter