Abstract
We address the challenge of estimating optical flow accurately and efficiently by adopting a sparse-to-dense approach. By learning a low-dimensional basis of full-frame motion from Hollywood movies, we regress dense flow from sparse matches. Our PCA-Flow algorithm is fast and robust, while its extension, PCA-Layers, handles complex motion boundaries and occlusions using a layered model. PCA-Flow runs in under 200ms/frame on a single CPU, and PCA-Layers achieves state-of-the-art performance in occluded regions on the MPI-Sintel dataset.
Introduction: The "Grammar" of Motion
Optical flow—calculating pixel-level motion between video frames—is fundamental to computer vision. However, researchers often face a trade-off between accuracy, speed, and robustness to large displacements. Dense variational methods are accurate but slow, while sparse matching is fast but leaves gaps that are difficult to interpolate realistically.
This paper proposes learning the "grammar" of motion. By understanding how objects typically move in natural scenes, we can "guess" dense flow from a few sparse points using a learned interpolant that understands physical constraints.
PCA-Flow: Learning a Global Basis
The core of the approach is PCA-Flow. Instead of using generic mathematical interpolation, the authors use Principal Component Analysis (PCA) to learn a set of "basis flow fields." These were trained on 180,000 frames of flow extracted from four Hollywood movies (e.g., Star Wars, Babel).
To estimate flow, the algorithm finds sparse feature matches and performs a robust regression to find the best weighted combination of these basis fields. Because the motion is represented as a linear combination of just 500 basis vectors, the estimation is incredibly efficient, running in approximately 190ms per frame on a standard CPU.
PCA-Layers: Handling Sharp Boundaries
While PCA-Flow is fast, it produces smooth results that can blur motion boundaries. To address this, the authors developed PCA-Layers. This method clusters sparse matches into different layers (e.g., a foreground character vs. a background) using an Expectation-Maximization (EM) algorithm.
Each layer is modeled with its own PCA-Flow estimate. These layers are then combined into a final dense field using an image-aware Markov Random Field (MRF). This ensures that motion boundaries align with image edges, preserving sharpness.
Results and Insights
The methods were evaluated on the MPI-Sintel and KITTI datasets. Key findings include:
- Regularization Effect: PCA-Flow actually outperformed the "teacher" algorithm used to generate its training data. The PCA basis acts as a regularizer, filtering out noise and errors from the training set.
- Efficiency: PCA-Flow was the fastest CPU-based method on KITTI and Sintel at the time of publication.
- Occlusion Handling: PCA-Layers (3.2s/frame) achieved state-of-the-art accuracy in occluded regions on Sintel. By using a global basis, the model can make "educated guesses" about the motion of pixels that disappear or reappear between frames.
Conclusion
By moving the complexity of motion modeling to a learned basis and performing layering at the sparse matching stage, this work demonstrates that high-quality dense optical flow can be estimated with remarkable efficiency. Future work may involve more sophisticated MRFs or non-linear subspace methods to capture even more complex, chaotic motions.
Summary updated