Hierarchically-constrained optical flow
Optical flow estimation—the process of determining pixel-level motion between consecutive video frames—is a fundamental task in computer vision. Traditional approaches generally fall into two categories: continuous variational methods and discrete optimization. Continuous methods are efficient and provide sub-pixel accuracy but are notoriously prone to local optima, often failing when objects undergo large displacements. Conversely, discrete methods treat motion as a labeling problem, which allows for global optimization but typically suffers from extreme computational complexity as the search space (label set) expands.
This paper introduces Hierarchically-Constrained Optical Flow (HCOF), a discrete optimization framework that overcomes the computational bottleneck of large-displacement search by utilizing a tree-structured graphical model derived from image segmentation.
Methodology: Tree-Structured Graphical Models
The core innovation of HCOF is the transition from a standard grid-based Markov Random Field (MRF) to a tree-structured MRF. While solving a grid-based MRF with a large label space is NP-hard, a tree structure can be solved optimally in polynomial time using a generalized Viterbi algorithm.
The process begins with an initial over-segmentation of the image into SLIC superpixels. These superpixels are then recursively merged based on color and edge similarity to form a hierarchy. Each node in this tree represents a variable in the MRF. The cost function minimized by the model includes:
- Unary Matching Term: Combines Lab color features and dense SIFT descriptors to evaluate potential matches.
- Smoothness Term: A weighted L1 penalty that encourages hierarchical consistency (children moving similarly to parents).
- Spatial Prior: A Cauchy distribution biasing the model toward smaller displacements.
To handle the massive label space (up to 160,000 possible offsets), the authors utilize linear-time distance transforms—a technique adapted from Deformable Parts Models (DPM)—to pass messages efficiently up the tree.
Experimental Results
The authors evaluated HCOF on the MPI-Sintel benchmark and a custom synthetic dataset designed to test extreme motion. A key finding is the method's remarkable robustness to large displacements. Because the discrete search is not gradient-based, the computational cost and accuracy are largely independent of the magnitude of motion.
On the MPI-Sintel test set, HCOF+multi achieved an Average Endpoint Error (EPE) of 8.799. Qualitatively, the resulting flow fields exhibit "crisp" boundaries that respect object edges, a direct result of using the segmentation hierarchy as a regularizer. This prevents the "oversmoothing" common in variational methods.
Conclusion
HCOF demonstrates that discrete optimization can be both globally optimal and computationally feasible for large-displacement optical flow. By leveraging the inherent structure of the image through hierarchical segmentation, the method provides a powerful alternative to local gradient-descent techniques, particularly in scenarios involving fast-moving objects and complex occlusions. Future work may focus on improving the underlying segmentation quality and incorporating more complex deformation models to handle non-rigid motion.
Summary updated