A linear model for simultaneous estimation of 3D motion and depth