PM-Huber: PatchMatch with Huber Regularization for Stereo Matching

Philipp Heise, Sebastian Klose, Brian Jensen, Alois C. Knoll

Introduction

Stereo matching is the fundamental task of estimating depth by finding pixel correspondences between two images. Traditional methods often rely on fronto-parallel assumptions or discrete depth levels, leading to "staircasing" artifacts on slanted or curved surfaces. While PatchMatch Stereo introduced slanted support windows to address this, it lacked global consistency, often resulting in noise in untextured regions. PM-Huber addresses these issues by integrating the randomized search of PatchMatch into a variational energy minimization framework using Huber regularization.

Methodology

The PM-Huber framework treats depth as a continuous, slanted surface rather than a set of discrete blocks.

Slanted Support Windows

Instead of assuming constant depth within a window, the algorithm models disparity at each pixel as a plane. For rectified stereo pairs, the transformation between images for a plane is defined by scaling, shearing, and translation. This allows the algorithm to match pixels across slanted surfaces more accurately.

Geometric transformations for slanted support windows.

Variational Energy and Huber Regularization

The authors define a global energy function $E = \lambda E_{data} + E_{smooth}$. The data term $E_{data}$ measures matching quality using color and gradients. The smoothness term $E_{smooth}$ utilizes the Huber norm, which provides quadratic smoothing for small variations (reducing noise) and linear penalties for large variations (preserving edges). By regularizing surface normals, the method effectively performs second-order smoothing, resulting in more natural reconstructions.

Optimization

To solve the optimization problem, quadratic relaxation is used to decouple matching from smoothing. This allows for a parallelized PatchMatch search and a primal-dual solver for regularization, making the algorithm suitable for modern GPU implementations.

Results and Discussion

PM-Huber was evaluated on the Middlebury and Strecha et al. datasets. At the time of publication, it achieved the top rank on the Middlebury benchmark for sub-pixel accuracy (0.5-pixel threshold).

3D reconstruction of a lion statue showing smooth surfaces without staircasing.

Qualitatively, the method produces remarkably smooth point clouds for both planar and curved objects. Unlike discrete methods, PM-Huber eliminates jagged "steps" on slanted surfaces, as demonstrated in the reconstruction of the lion statue.

Conclusion

PM-Huber successfully combines efficient randomized search with rigorous mathematical regularization. While the processing time (approx. 2 minutes) is currently too slow for real-time use, the high sub-pixel accuracy and smooth surface reconstruction represent a significant advancement in stereo vision. Future work includes extending the framework to multi-view stereo and optical flow estimation.

Summary updated

BibTeX
@inproceedings{heise2013pm,
  author = {Philipp Heise and Sebastian Klose and Brian Jensen and Alois C. Knoll},
  title = {{PM-Huber: PatchMatch with Huber Regularization for Stereo Matching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.293},
}
Figure