Abstract
Optical Flow algorithms are of high importance for many applications. Recently, the Flow Field algorithm and its modifications have shown remarkable results, as they have been evaluated with top accuracy on different data sets. In our analysis of the algorithm we have found that it produces accurate sparse matches, but there is room for improvement in the interpolation. Thus, we propose in this paper FlowFields++, where we combine the accurate matches of Flow Fields with a robust interpolation. In addition, we propose improved variational optimization as post-processing. Our new algorithm is evaluated on the challenging KITTI and MPI Sintel data sets with public top results on both benchmarks.
Introduction
Estimating dense optical flow—the task of tracking motion for every pixel between consecutive image frames—is a cornerstone of computer vision. It serves as a critical component for autonomous navigation, 3D reconstruction, and robotic perception. While the field has seen a surge in deep learning-based approaches, these models often struggle with generalization, requiring extensive fine-tuning to move from synthetic training environments to real-world scenarios.
FlowFields++ addresses these challenges by building upon the successful Flow Fields framework. The core insight is that while the original algorithm excels at finding highly accurate sparse correspondences, its method for densifying these matches into a full flow map can be improved. By integrating a robust, edge-aware interpolation strategy and refined variational optimization, FlowFields++ achieves state-of-the-art performance across diverse benchmarks without the need for dataset-specific training.
Methodology
The FlowFields++ pipeline is structured into three distinct stages: sparse matching, robust interpolation, and variational refinement.
1. Sparse Matching
The process begins by identifying high-confidence pixel correspondences. Using a coarse-to-fine spatial propagation and random search strategy, the algorithm computes matching costs based on the Census transform (for the MPI Sintel dataset) or SIFT features (for the KITTI dataset). To ensure the integrity of these initial matches, the system employs aggressive filtering, including forward-backward consistency checks and a local sparsification step that retains only the most reliable matches within a given neighborhood.
2. Robust Interpolation
The transition from sparse matches to a dense flow field is the primary innovation of FlowFields++. Traditional methods often rely on simple image gradients for interpolation, which can lead to "bleeding" across object boundaries. Instead, FlowFields++ utilizes an edge-aware strategy guided by semantic boundaries.
By employing a random forest trained to detect these boundaries, the algorithm computes geodesic distances to guide the interpolation. The image is partitioned into super-pixels, and local 2D affine transformations are fitted to the sparse matches. This consensus-based model estimation naturally rejects any remaining outlier matches, resulting in a dense flow field that respects the underlying geometry of the scene.
3. Variational Optimization
Finally, the dense flow map undergoes refinement through a variational framework. FlowFields++ introduces two significant modifications to the standard approach:
- Elimination of the Coarse-to-Fine Pyramid: Because the interpolated flow is already highly accurate at the original resolution, the traditional multi-scale pyramid is unnecessary and is bypassed to preserve detail.
- Boundary-Aware Optimization: The authors observed that standard smoothness terms in variational energy often degrade flow estimates for objects moving out of the frame. FlowFields++ explicitly disables optimization for these out-of-bounds pixels, preserving the accurate estimates generated during the interpolation phase.
Experimental Evaluation
The algorithm was rigorously tested on two primary benchmarks:
- KITTI 2015: In real-world driving scenarios characterized by large displacements and complex lighting, FlowFields++ achieved an outlier rate (Fl-all) of 15.31%. This represents a 20% reduction in outliers compared to the previous iteration, FlowFields+.
- MPI Sintel: On the "final" rendering pass of this synthetic dataset, which includes motion blur and non-rigid deformations, the method achieved an End-Point Error (EPE) of 5.486.
When considering a joint ranking across both datasets, FlowFields++ emerged as the second-best dual-frame method available at the time of publication, outperforming many contemporary deep learning models in cross-domain versatility.
Discussion and Key Insights
A central takeaway from this research is that classical matching techniques, when paired with robust interpolation, can rival or exceed the performance of deep learning models in terms of generalization. By relying on semantic boundaries rather than simple edges, the interpolation remains faithful to object shapes. Furthermore, the realization that variational optimization can be detrimental in occluded or out-of-bounds regions highlights the importance of maintaining high-quality interpolated seeds.
Conclusion
FlowFields++ demonstrates that the combination of accurate sparse correspondences and robust, edge-aware interpolation provides a powerful framework for dense optical flow estimation. While the current runtime of approximately 29 seconds per frame on a GPU limits its use in real-time applications, its accuracy and ability to generalize across datasets make it a significant contribution to the field. Future research may focus on optimizing the pipeline for speed or extending the interpolation logic to multi-frame sequences to better handle complex occlusions.
Summary updated