Learned Multi-patch Similarity

Wilfried Hartmann, Silvano Galliani, Michal Havlena, Luc Van Gool, Konrad Schindler

Abstract

Traditional multi-view stereo (MVS) reconstruction relies on aggregating pairwise similarity scores between image patches. This paper introduces a multi-stream "Siamese" convolutional neural network (CNN) that directly computes a similarity score for $n > 2$ image patches simultaneously. By learning an $n$-way similarity function, the model achieves significantly higher robustness in regions plagued by specular reflections and complex geometry, outperforming traditional heuristic aggregation methods.

Introduction

3D reconstruction from multiple images (Multi-View Stereo) depends on finding corresponding points across different viewpoints. Historically, researchers have focused on two-view cases (stereo matching). When more than two views are available, the standard approach is to calculate pairwise similarities—for example, between a reference image and several neighbors—and then heuristically average those scores.

This approach is inherently limited because simple averaging fails to handle outliers like occlusions, noise, or specularities that might only appear in a subset of views. This research addresses this by asking: why not learn a single function that evaluates all patches at once?

Methods

The proposed architecture is a multi-stream Siamese CNN designed to process $n$ image patches (typically $n=5$) of size $32 \times 32$ pixels.

The multi-stream Siamese CNN architecture featuring tied weights and mean fusion for n-way patch similarity.

Architecture Details

  1. Feature Extraction: Each input patch is processed by its own branch. All branches share tied weights, ensuring the network is invariant to the order of input images and treats every viewpoint equally.
  2. Fusion via Averaging: Features from the $n$ branches are combined using a mean operation. This is a critical design choice, as it allows the network to process a variable number of views at test time (e.g., 3 or 9) without retraining.
  3. Similarity Scoring: The fused features pass through additional convolutional layers, concluding in a softmax layer that outputs a scalar similarity score between 0 (dissimilar) and 1 (similar).
  4. Integration: This learned similarity function is integrated into a standard plane-sweeping depth estimation pipeline, where the system selects the depth hypothesis with the highest similarity score.

Key Insights

  • End-to-End n-way Matching: The network learns the entire mapping from raw pixels to a similarity score across multiple views, rather than relying on fixed metrics like Euclidean distance.
  • Robustness to Specularity: By observing multiple views simultaneously, the network can implicitly learn to ignore specularities that appear in only one view, which would typically derail pairwise methods.
  • Non-linearities: Interestingly, the authors found that Tanh non-linearities performed better than ReLU in the early layers of this specific patch-matching task.

Results

The model was evaluated primarily on the DTU Robot Image Data, which contains 80 indoor scenes with ground truth 3D data.

Qualitative comparison of depth estimation results across different scenes (bird, plant, cans, buddha) showing the proposed method's robustness.

Performance Metrics

  • Quantitative: On the DTU benchmark, the proposed method achieved superior median accuracy and completeness compared to traditional methods like ZNCC (Zero-mean Normalized Cross-Correlation) and learned pairwise descriptors like LIFT.
  • Qualitative: Visual results demonstrate that while ZNCC and LIFT produce significant errors on shiny surfaces—such as metal cans or porcelain statues—the multi-patch similarity model maintains a clean, accurate depth map.
  • Efficiency: The fully convolutional implementation is highly efficient, computing similarity scores for a $100 \times 100$ pixel region across 256 depth planes in approximately 70ms on a modern GPU.

Conclusion and Future Work

While the model provides a robust "black-box" similarity predictor, it does not yet explicitly model occlusions. Future work may involve tighter integration with global optimization techniques like Markov Random Fields (MRFs) and exploring continuous similarity measures for applications beyond binary classification, such as image retrieval.

Summary updated

BibTeX
@inproceedings{hartmann2017learned,
  author = {Wilfried Hartmann and Silvano Galliani and Michal Havlena and Luc Van Gool and Konrad Schindler},
  title = {{Learned Multi-patch Similarity}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.176},
}
Figure