Abstract
We introduce a novel matching algorithm, called DeepMatching, to compute dense correspondences between images. DeepMatching relies on a hierarchical, multi-layer, correlational architecture designed for matching images and was inspired by deep convolutional approaches. The proposed matching algorithm can handle non-rigid deformations and repetitive textures and efficiently determines dense correspondences in the presence of significant changes between images. We evaluate the performance of DeepMatching, in comparison with state-of-the-art matching algorithms, on the Mikolajczyk, the MPI-Sintel, and the Kitti datasets. DeepMatching outperforms the state-of-the-art algorithms and shows excellent results in particular for repetitive textures. We also propose a method for estimating optical flow, called DeepFlow, by integrating DeepMatching in the large displacement optical flow (LDOF) approach. Compared to existing matching algorithms, additional robustness to large displacements and complex motion is obtained thanks to our matching approach. DeepFlow obtains competitive performance on public benchmarks for optical flow estimation.
Introduction
Finding point-to-point correspondences between two images is a cornerstone of computer vision, essential for tasks like object recognition and motion estimation. However, traditional methods struggle with images "in the wild"—scenes featuring non-rigid deformations (like a person moving), large displacements between frames, or repetitive textures (like a brick wall or forest).
Existing approaches generally fall into two camps. Descriptor matching methods, such as SIFT, are robust to rigid objects but often fail when objects undergo non-rigid deformation. Conversely, propagation-based methods like PatchMatch handle deformations well but are easily confused by repetitive patterns. DeepMatching bridges this gap with an architecture robust to both non-rigid warping and ambiguous textures.
The DeepMatching Architecture
The core of the proposed approach is a multi-layer, correlational architecture that mimics the structure of deep convolutional neural networks (CNNs).
Bottom-Up Correlation Pyramid
The algorithm begins by dividing the first image into 4x4 "atomic" patches. It computes correlation maps for these patches against the second image. These maps are then iteratively aggregated to form correlations for larger patches (8x8, 16x16, etc.). This aggregation process utilizes operations familiar to deep learning:
- Max-pooling: Provides tolerance to small local deformations by allowing sub-patches to shift slightly within a larger patch's area.
- Subsampling: Manages computational complexity as the hierarchy grows.
- Non-linear Rectification: A power transform ($\lambda \approx 1.4$) is applied to sharpen high-correlation peaks and ensure only certain matches propagate to the top levels.
Top-Down Backtracking
Once the pyramid is constructed, the algorithm retrieves precise locations of the constituent atomic patches by backtracking through the hierarchy, starting from high-confidence matches of large patches at the top level and moving down to the atomic level.
Key Insights
Deformation via Max-Pooling
By allowing sub-patches to shift slightly within a larger patch's area via max-pooling, the algorithm naturally models non-rigid warping without requiring a complex global deformation model. This local flexibility is key to handling articulated motion, such as human limbs moving in a video.
Hierarchy Resolves Ambiguity
Small 4x4 patches are often non-discriminative, especially in repetitive textures where many areas look identical. However, as these are aggregated into larger hierarchies, the increasing spatial context makes the match unique. As shown in the correlation maps below, the signal becomes significantly more peaked and certain as the patch size increases.
Experimental Results
DeepMatching was evaluated on several standard benchmarks, including the Mikolajczyk dataset for viewpoint changes, MPI-Sintel for complex motion, and KITTI for real-world driving sequences.
- Matching Accuracy: DeepMatching significantly outperformed state-of-the-art descriptors like SIFT and HOG on the Mikolajczyk dataset, particularly in scenes with repetitive patterns.
- Optical Flow Boost: By integrating DeepMatching into a variational optical flow framework (DeepFlow), the authors achieved a 30% relative improvement in accuracy on MPI-Sintel and a 50% improvement on KITTI for large displacements compared to previous methods.
- Efficiency: To address memory constraints, the authors introduced a version that uses k-means clustering to compress atomic patches into a set of "prototypes." A GPU implementation can process an image pair in approximately 0.2 seconds.
Conclusion
DeepMatching introduces a powerful hierarchical framework for dense image matching. By leveraging CNN-inspired operations like max-pooling and rectification within a correlational pyramid, it achieves state-of-the-art results for non-rigid motion and repetitive textures. While highly robust to deformation, future work may explore non-uniform patch weighting to better handle very thin objects and complex boundaries where background interference is high.
Summary updated