Fast Optical Flow Using Dense Inverse Search

Till Kroeger, Radu Timofte, Dengxin Dai, Luc Van Gool

Abstract

Optical flow estimation is a fundamental task in computer vision, yet it often suffers from a significant trade-off between accuracy and computational speed. We present Dense Inverse Search (DIS), an algorithm designed to achieve high-quality optical flow at unprecedented frame rates—ranging from 300Hz to 600Hz on a single CPU core. By leveraging an efficient inverse patch matching strategy and a multi-scale densification process, DIS offers a 10x to 100x speedup over existing state-of-the-art methods while remaining competitive in accuracy, particularly for real-time robotics and high-speed video analysis.

Introduction

Estimating the motion of every pixel between consecutive video frames, known as optical flow, is essential for applications such as autonomous navigation, activity recognition, and object tracking. Historically, high-performing algorithms have been computationally expensive, often requiring several seconds per frame or high-end GPU hardware. This latency makes them unsuitable for resource-constrained embedded systems or high-speed robotic platforms.

The core philosophy behind Dense Inverse Search (DIS) is that for many real-world applications, a "good enough" flow estimate delivered at a very high frame rate is more valuable than a near-perfect estimate that arrives too late. DIS breaks the "speed vs. accuracy" wall by prioritizing extreme computational efficiency.

Methodology

The DIS pipeline consists of three primary stages designed for speed and robustness:

  1. Fast Inverse Search for Patch Correspondences: Inspired by inverse compositional image alignment, DIS finds matches for a grid of patches. By switching the roles of the template and target images, the algorithm can precompute image gradients and the Hessian matrix. This "inverse" trick reduces the iterative search cost to microseconds per patch.
  2. Multi-scale Densification: To produce a dense flow field from sparse matches, DIS employs a scale pyramid. Starting at a coarse resolution to capture large displacements, it moves to finer scales. Overlapping patch estimates are aggregated using weighted averages at each level, which smooths noise and handles outliers.
  3. Variational Refinement: A final, simplified variational optimization step is applied to the dense field. This step enforces smoothness and brightness constancy, sharpening the final flow boundaries.

Experimental Evaluation

The authors evaluated DIS on the MPI Sintel and KITTI benchmarks. Sintel provides complex synthetic motions and occlusions, while KITTI offers real-world challenges for autonomous driving.

Performance comparison of DIS against state-of-the-art methods, showing a 93x speedup at comparable error rates, alongside visual flow results at different frequencies.

Key Results

  • Unprecedented Speed: DIS operates between 10Hz and 600Hz on 1024×436 resolution images using only a single CPU core. At 300Hz, it matches the temporal resolution of human biological vision.
  • Massive Speedup: Compared to top-tier methods like DeepFlow or EPPM, DIS provides a 1-2 orders of magnitude speedup at similar error levels.
  • Competitive Accuracy: On the Sintel "final" benchmark, DIS-Fast achieved an average end-point error (EPE) of 10.13, outperforming other "fast" methods like SimpleFlow (13.36) while being significantly faster.

Discussion and Key Insights

A critical insight of this work is that high temporal resolution matters. Running a simpler, faster algorithm at a higher frame rate can be more accurate than a complex algorithm at a low frame rate because smaller inter-frame displacements are inherently easier to estimate. Furthermore, the CPU-first design ensures accessibility for mobile robots and embedded devices without requiring specialized GPU hardware.

Ablation study showing the impact of variational refinement (Ref.) on the average end-point error (EPE) across different run-times.

Limitations

Despite its advantages, DIS faces challenges common to multi-scale approaches. Small, fast-moving objects may be lost at coarse scales and never recovered. Additionally, the current L2 error norm is sensitive to complex lighting changes, though variational refinement helps mitigate this.

Conclusion

Dense Inverse Search represents a significant leap in real-time optical flow. By optimizing the matching process and leveraging temporal redundancy, it enables high-speed motion estimation on standard hardware, opening new possibilities for reactive robotics and real-time video processing.

Summary updated

BibTeX
@inproceedings{kroeger2016fast,
  author = {Till Kroeger and Radu Timofte and Dengxin Dai and Luc Van Gool},
  title = {{Fast Optical Flow Using Dense Inverse Search}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  doi = {10.1007/978-3-319-46493-0\_29},
}
Figure