Image sequence analysis for object detection and segmentation