Three-dimensional motion computation and object segmentation in a long sequence of stereo frames