Solving Dense Image Matching in Real-Time using Discrete-Continuous Optimization

Alexander Shekhovtsov, Christian Reinbacher, Gottfried Graber, Thomas PockarXiv 2016

Introduction

Dense image matching—the process of establishing pixel-wise correspondences between images—remains a fundamental challenge in computer vision. Whether calculating depth from stereo pairs or estimating optical flow between video frames, the goal is to accurately map pixels from one view to another. This paper, presented at the 2016 Computer Vision Winter Workshop, introduces a hybrid optimization framework that bridges the gap between global robustness and local precision, achieving high-quality results in real-time.

The Challenge of Dense Matching

Dense matching is inherently "ill-posed" due to noise, textureless regions, and repetitive patterns. Traditionally, researchers have split into two optimization camps:

  1. Discrete Optimization: These methods treat matching as a labeling problem. While excellent at finding global solutions and handling large displacements, they suffer from "staircasing" artifacts because solutions are restricted to discrete pixel values.
  2. Continuous Optimization: These methods treat the problem as a smooth functional. They offer sub-pixel accuracy but are highly sensitive to local minima, often failing when initial estimates are poor or motion is large.
Comparison of discrete, continuous, and the proposed combined optimization for optical flow.

The authors argue that existing hybrid approaches are often too slow for real-time applications or lack a unified mathematical model between the discrete and continuous stages.

Proposed Methodology: A Unified Hybrid Approach

The core innovation lies in a two-stage optimization process that minimizes the same energy function across both discrete and continuous domains.

Discrete Stage: Dual Minorize-Maximize (Dual MM)

To overcome the sequential nature of powerful algorithms like TRW-S, the authors developed "Dual Minorize-Maximize." This solver is designed for massive parallelism on modern GPUs. By operating in the dual space and decomposing the image into independent chains, the algorithm can saturate GPU memory bandwidth, achieving speeds significantly faster than previous implementations.

Continuous Stage: Non-linear Primal-Dual Refinement

The discrete solution serves as a robust initial guess for a subsequent continuous refinement stage. To maintain sharp object boundaries, the authors utilize truncated regularizers. Although these are non-convex and difficult to optimize, the paper employs a "difference of convex functions" decomposition, solved via a modified primal-dual hybrid gradient method. This ensures sub-pixel smoothness without blurring edges.

Experimental Results

The framework was evaluated on standard stereo benchmarks and optical flow sequences.

Qualitative and Quantitative Performance

The combined method successfully eliminates the blocky artifacts typical of discrete solvers while preserving fine structural details that continuous methods might miss. In 3D reconstruction tasks, the refinement stage is crucial for producing smooth, realistic surfaces.

Impact of the continuous refinement stage on 3D reconstruction quality.

Real-Time Execution

On a 640x480 resolution with 128 disparities, the full stereo pipeline runs in approximately 139ms (~7 FPS). The discrete solver accounts for 73ms, while the continuous refinement takes 39ms. This performance is roughly 10 times faster than comparable FPGA-based methods, demonstrating the efficiency of the Dual MM approach.

Conclusion

By formalizing the interaction between discrete and continuous optimization, the authors provide a robust solution for real-time dense matching. The Dual MM solver enables global reasoning at GPU speeds, while the non-linear refinement ensures the precision required for high-fidelity 3D reconstruction and tracking. Future work aims to incorporate occlusion modeling and planar surface priors to further enhance accuracy in challenging environments.

Summary updated

BibTeX
@misc{shekhovtsov2016solving,
  author = {Alexander Shekhovtsov and Christian Reinbacher and Gottfried Graber and Thomas Pock},
  title = {{Solving Dense Image Matching in Real-Time using Discrete-Continuous Optimization}},
  year = {2016},
  eprint = {1601.06274},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1601.06274},
}
Figure