Optical Flow in Mostly Rigid Scenes

Jonas Wulff, Laura Sevilla-Lara, Michael J. Black

Abstract

The optical flow of natural scenes is a combination of the motion of the observer and the independent motion of objects. Existing algorithms typically focus on either recovering motion and structure under the assumption of a purely static world or optical flow for general unconstrained scenes. We combine these approaches in an optical flow algorithm that estimates an explicit segmentation of moving objects from appearance and physical constraints. In static regions we take advantage of strong constraints to jointly estimate the camera motion and the 3D structure of the scene over multiple frames. This allows us to also regularize the structure instead of the motion. Our formulation uses a Plane+Parallax framework, which works even under small baselines, and reduces the motion estimation to a one-dimensional search problem, resulting in more accurate estimation. In moving regions the flow is treated as unconstrained, and computed with an existing optical flow method. The resulting Mostly-Rigid Flow (MR-Flow) method achieves state-of-the-art results on both the MPI-Sintel and KITTI-2015 benchmarks.

Bridging the Gap in Motion Estimation

Optical flow—the task of estimating the 2D motion of pixels between camera frames—is a cornerstone of computer vision. Historically, researchers have approached this in two ways:

  1. Structure-from-Motion (SfM): Assumes the world is static and uses camera motion to reconstruct 3D geometry.
  2. General Optical Flow: Makes weak assumptions to handle any kind of motion but ignores the fact that most of the world (roads, buildings, trees) is rigid.

The "gap" is that SfM fails when objects move independently (like a car driving by), and general optical flow is "noisier" than it needs to be because it doesn't exploit the rigid physics of the background. MR-Flow tackles the challenge of synthesizing these two worlds to handle generic, complex scenes where most—but not all—of the environment is static.

The MR-Flow Pipeline

MR-Flow follows a multi-step pipeline to process input frames into a high-accuracy flow field:

The MR-Flow pipeline combines CNN-based rigidity estimation with a joint optimization framework using Plane+Parallax constraints.
  • Rigidity Segmentation: The algorithm first decides which pixels belong to the "rigid" background and which belong to "moving" objects. It uses semantic cues (a CNN trained to recognize rigid objects like buildings) and physical cues (checking if motion aligns with the camera's epipole).
  • Plane+Parallax (P+P) Framework: For rigid regions, the P+P framework aligns frames to a common virtual plane. This turns a complex 2D search into a simpler 1D search, making the estimation robust against noise.
  • Joint Optimization: Unlike methods that process just two frames, MR-Flow uses a triplet of frames. It optimizes a global objective function that refines the 3D structure and camera motion simultaneously.
  • Hybrid Composition: The final flow field is a composite: rigid regions use the highly constrained 3D-induced flow, while moving regions use a standard unconstrained flow method.

Key Insights

  • Regularizing Structure, Not Flow: In traditional flow, we assume neighboring pixels move similarly. In MR-Flow, the authors regularize the 3D structure (assuming the ground or walls are locally planar). This is physically more accurate than smoothing 2D vectors.
  • The Power of Triplets: By looking at three frames, the algorithm can "see" into occluded areas. If a pixel is covered in frame 2 but visible in frame 3, the rigid 3D model can accurately predict where that pixel should have been.
  • Semantic Rigidity: Knowing an object is a "house" provides a powerful prior that it shouldn't be moving independently, resolving ambiguities that purely mathematical motion models cannot.

Quantitative Results

The authors evaluated MR-Flow on the MPI-Sintel and KITTI-2015 benchmarks. At the time of publication, MR-Flow achieved the lowest error of any published monocular method on both the "Clean" and "Final" passes of the MPI-Sintel benchmark.

MR-Flow achieves state-of-the-art performance on Sintel and competitive results on KITTI 2015 compared to existing methods like DeepFlow (DF) and Sintel-specific models.

MR-Flow produced the lowest errors in "unmatched" (occluded) regions compared to all other methods, a direct result of using the rigid 3D model to "fill in the blanks." On KITTI-2015, it ranked second among monocular methods, proving that a general-purpose model can compete with methods specifically engineered for automotive scenes.

Limitations and Future Work

While highly accurate, the optimization is relatively slow, taking about 2 minutes per triplet of frames on a standard CPU. Additionally, the method relies on an initial "coarse" flow estimate; if this initialization is completely wrong, the P+P optimization may struggle to recover. Future work could involve jointly refining the motion of moving objects using similar 3D constraints, treating them as their own rigid sub-scenes.

Summary updated

BibTeX
@inproceedings{wulff2017optical,
  author = {Jonas Wulff and Laura Sevilla-Lara and Michael J. Black},
  title = {{Optical Flow in Mostly Rigid Scenes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=BkVTdT-uWH},
}
Figure