Structure from motion with missing data