Adaptive object segmentation and tracking