Shape extraction using temporal continuity