Abstract
This paper introduces Contour Flow, a middle-level motion representation designed to estimate consistent point-to-point correspondences between object boundaries across video frames. Unlike traditional methods that rely on noisy optical flow or sparse point tracking, Contour Flow leverages local motion patterns and a two-stage global alignment strategy to track contours through complex topological changes like splitting and merging. By concatenating these estimations, the system constructs spatiotemporal (S-T) meshes that provide a structured, long-term representation of object motion.
Introduction: Bridging the Motion Estimation Gap
Motion estimation in computer vision typically operates at two extremes: dense optical flow, which is detailed but often noisy and lacks structural coherence, and point tracking, which is organized but often too sparse to represent complex, non-rigid shapes. Contours offer a "middle-level" solution, naturally encoding both shape and connectivity. However, tracking them is difficult because edges extracted independently in consecutive frames rarely match perfectly due to lighting changes, occlusions, and rapid movement. The authors propose a framework that treats contour matching as a combined motion segmentation and alignment problem to overcome these inconsistencies.
Methodology
The proposed framework consists of three primary pillars designed to balance local accuracy with global consistency.
1. Motion-Based Local Measurement
Rather than relying solely on pixel-level features like color or gradients, the algorithm utilizes the motion of the physical surface the contour occupies. By applying RANSAC to a pre-estimated optical flow field, the system identifies local similarity transformations. A match between two contour points is prioritized if it aligns with the underlying motion patterns of the surrounding surface, significantly increasing robustness in cluttered environments.
2. Two-Stage Global Reasoning
To resolve local ambiguities and handle complex transitions, the system employs a two-stage strategy:
- Stage 1 (Tentative Alignment): Dynamic Programming finds one-to-one alignments for all possible contour pairs within a search range, enforcing strict bending and stretching constraints to ensure physical plausibility.
- Stage 2 (Consistent Fusion): Conflicting hypotheses are resolved by breaking contours into fragments and solving a global labeling problem. This allows the system to handle topological changes, such as a single boundary splitting into multiple parts or merging with another.
3. Spatiotemporal (S-T) Meshes
By concatenating frame-by-frame alignments, the system builds a "mesh" in 3D space (x, y, and time). These S-T meshes provide a descriptive and structured representation of how an object's boundary evolves, offering a "best of both worlds" scenario between raw pixels and sparse points.
Experimental Results
The authors introduced the ContourMotion dataset, featuring 12 sequences with over 100 annotated contours, to evaluate the method.
- Superior Matching: In quantitative tests, the motion-based approach (CFMo) achieved a 68.1% coverage score (at a 6-pixel error threshold), vastly outperforming traditional gradient-based (39.2%) and intensity-based (55.8%) matching.
- Segmentation Refinement: When applied to the SegTrack benchmark, the method improved video object segmentation. For the "birdfall" sequence, it reduced pixel error to 177, outperforming several specialized segmentation models.
- Robustness: Qualitative results show the system successfully tracking non-rigid motions, such as a person's hands during interactions, even when the contours undergo significant topological changes.
Discussion and Conclusion
Contour Flow successfully bridges the gap in motion representation by combining local motion priors with global alignment. While the current model uses a simplified bending constraint, it demonstrates significant improvements in tracking consistency and accuracy. Future work will explore more sophisticated non-rigid deformation models and the use of S-T meshes as proposals for higher-level tasks like human pose estimation and action recognition.
Summary updated