Abstract
Modern large displacement optical flow algorithms usually use an initialization by either sparse descriptor matching techniques or dense approximate nearest neighbor fields. While the latter have the advantage of being dense, they have the major disadvantage of being very outlier-prone as they are not designed to find the optical flow, but the visually most similar correspondence. In this article we present a dense correspondence field approach that is much less outlier-prone and thus much better suited for optical flow estimation than approximate nearest neighbor fields. Our approach does not require explicit regularization, smoothing (like median filtering) or a new data term. Instead we solely rely on patch matching techniques and a novel multi-scale matching strategy. We also present enhancements for outlier filtering. We show that our approach is better suited for large displacement optical flow estimation than modern descriptor matching techniques. We do so by initializing EpicFlow with our approach instead of their originally used state-of-the-art descriptor matching technique. We significantly outperform the original EpicFlow on MPI-Sintel, KITTI 2012, KITTI 2015 and Middlebury. In this extended article of our former conference publication we further improve our approach in matching accuracy as well as runtime and present more experiments and insights.
Introduction
Optical flow—the task of tracking the motion of every pixel between two frames—is notoriously difficult when displacements are large. Traditional methods usually fall into two camps:
- Variational Methods: These rely on local smoothness but often fail when objects move quickly because they get stuck in local minima (the "small displacement" assumption).
- Matching-based Methods: These use techniques like Approximate Nearest Neighbor Fields (ANNF) to find similar-looking patches. However, ANNF is "outlier-prone" because it prioritizes visual similarity over physical motion consistency, leading to noisy results that are hard to clean up.
This research identifies a critical gap: the need for a dense set of matches that is both spatially exhaustive (unlike sparse descriptors) and physically plausible (unlike raw ANNF).
Methodology: The Flow Fields Algorithm
The core of the paper is the Flow Fields algorithm, which evolves the popular PatchMatch framework into a robust motion estimator.
Key technical contributions include:
- The Outlier Sieve: Instead of a standard image pyramid, a multi-scale approach is used where coarser scales act as a filter. Since "resistant outliers" (false matches with low error) are usually scale-dependent, a true motion match persists across scales, while outliers are "sieved" out during the coarse-to-fine transition.
- Non-Local Propagation: Standard PatchMatch is very local. Flow Fields allows matches to propagate across large image distances in a single iteration if the flow is consistent, enabling the discovery of large displacements without a massive global search.
- Locality in Flow Space: While propagation is non-local in image space, the random search is restricted in flow space. This inherently favors smooth motion fields without requiring an explicit, computationally expensive regularization term.
- Enhanced Filtering: A "2-way" forward-backward consistency check and region-based filtering remove small, isolated clusters of inconsistent matches.
- Flow Fields+: An improved version introducing "sub-scales" and dual random search distances to better distribute sparse matches in difficult regions.
Evaluation
The approach was evaluated on industry-standard benchmarks:
- MPI-Sintel (Clean and Final): Challenging animated film sequences with complex motions and atmospheric effects.
- KITTI 2012 & 2015: Real-world driving sequences with large displacements and lighting changes.
- Middlebury: High-precision benchmark for smaller displacement flow.
Results and Discussion
The "Flow Fields + EpicFlow" pipeline significantly outperformed the original EpicFlow (which used DeepMatching) across all datasets.
Key Insights
- Similarity ≠ Correspondence: The most visually similar patch is often not the correct motion match. The multi-scale strategy exploits the fact that true motion is consistent across levels of image resolution, whereas random visual coincidences are not.
- Efficiency through Sparsification: Feeding a slightly sparsified, high-confidence set of matches into an interpolator (like EpicFlow) yields better results than a noisy, fully dense field.
- Sub-pixel Accuracy: Incorporating sub-pixel search early in the matching process prevents the algorithm from falling into the "trap" of nearby resistant outliers.
Performance Benchmarks
- MPI-Sintel: On the "Clean" set, Flow Fields+ achieved an End-Point Error (EPE) of 0.820, setting a new state-of-the-art at the time.
- KITTI 2015: Achieved a significant lead over previous methods like CPM-Flow, particularly in non-occluded regions.
- Outlier Reduction: Flow Fields achieved ~90% of pixels with an EPE below 3 pixels on Sintel, compared to only ~68% for standard ANNF.
- Speed: A "Fast" version reduces runtime from 14s to ~1.2s on Sintel while maintaining high accuracy.
Conclusion
Flow Fields provides a highly accurate, outlier-resistant initialization for optical flow. While it relies on external edge-preserving interpolators like EpicFlow for final dense maps, it significantly advances the state-of-the-art in correspondence matching. Future work may involve better handling of tiny objects that disappear at coarse scales and integrating CNN-based features to further improve data terms.
Summary updated