Structure from motion by fast alternation