EpicFlow: Edge-Preserving Interpolation of Correspondences for Optical Flow

Jérôme Revaud, Philippe Weinzaepfel, Zaïd Harchaoui, Cordelia Schmid

Abstract

We propose a novel approach for optical flow estimation, targeted at large displacements with significant occlusions. It consists of two steps: i) dense matching by edge-preserving interpolation from a sparse set of matches; ii) variational energy minimization initialized with the dense matches. The sparse-to-dense interpolation relies on an appropriate choice of the distance, namely an edge-aware geodesic distance. This distance is tailored to handle occlusions and motion boundaries—two common and difficult issues for optical flow computation. We also propose an approximation scheme for the geodesic distance to allow fast computation without loss of performance. Subsequent to the dense interpolation step, standard one-level variational energy minimization is carried out on the dense matches to obtain the final flow estimation. The proposed approach, called Edge-Preserving Interpolation of Correspondences (EpicFlow), is fast and robust to large displacements. It significantly outperforms the state of the art on MPI-Sintel and performs on par on Kitti and Middlebury.

Introduction: The Limits of Coarse-to-Fine

Optical flow—estimating the motion of every pixel between consecutive video frames—is a fundamental task in computer vision. However, it faces significant hurdles: large displacements of fast-moving objects, occlusions where objects disappear, and motion discontinuities at sharp object boundaries.

For years, the standard solution was a "coarse-to-fine" strategy: solving the problem on a downsampled version of the image and gradually upscaling. However, errors made at coarse levels, such as blurring thin structures into the background, propagate and multiply as resolution increases. EpicFlow proposes a "sparse-to-dense" alternative that bypasses this scaling issue entirely by working at the original resolution.

Comparison of coarse-to-fine flow estimation versus EpicFlow. Traditional methods often fail to recover thin structures lost at coarse scales, whereas EpicFlow preserves them.

Methodology: Sparse-to-Dense via Edge-Aware Interpolation

The EpicFlow pipeline moves away from traditional heuristics by using image edges to guide the interpolation of sparse matches into a dense flow field. The process consists of three main stages:

  1. Sparse Matching: The process begins with a set of reliable pixel matches (e.g., using DeepMatching). These are robust to large movements but leave most pixels empty.
  2. Edge-Preserving Interpolation: To fill the gaps, EpicFlow interpolates matches using an edge-aware geodesic distance. Because motion boundaries usually coincide with image edges, this metric ensures that a pixel's motion is influenced only by matches belonging to the same object. To maintain efficiency, the authors use a fast approximation via a Geodesic Voronoi diagram.
  3. Variational Minimization: The interpolated dense field initializes a one-level variational energy minimization, which refines the flow for local smoothness and data consistency at full resolution.
The EpicFlow pipeline involves sparse matching, contour detection, edge-preserving dense interpolation, and variational energy minimization.

Experimental Results

EpicFlow was evaluated on three prominent benchmarks: MPI-Sintel (complex textures and large motions), Kitti (real-world driving scenarios), and Middlebury (high-precision estimation).

  • Accuracy: EpicFlow set a new state-of-the-art on the MPI-Sintel "final" pass with an Average Endpoint Error (AEE) of 6.285, significantly outperforming previous methods.
  • Speed: The method is remarkably efficient, processing a Sintel frame in approximately 16.4 seconds on a single CPU core—orders of magnitude faster than many high-accuracy competitors.
  • Robustness: By using piecewise affine modeling and respecting image edges, the method excels in occluded areas and at motion boundaries where traditional methods typically "smear" the flow.

Conclusion

EpicFlow demonstrates that abandoning the coarse-to-fine paradigm in favor of smart interpolation at the original resolution is highly effective for preserving thin structures and handling large displacements. While it relies on the quality of initial matches and edge detection, its combination of speed and accuracy represents a significant advancement in optical flow estimation. Future work may involve interleaving flow estimation with match refinement to further improve robustness.

Summary updated

BibTeX
@inproceedings{revaud2015epicflow,
  author = {Jérôme Revaud and Philippe Weinzaepfel and Zaïd Harchaoui and Cordelia Schmid},
  title = {{EpicFlow: Edge-Preserving Interpolation of Correspondences for Optical Flow}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  url = {https://openreview.net/forum?id=Sk-nkaZ_WB},
}
Figure