Graph Cut Based Continuous Stereo Matching Using Locally Shared Labels

Tatsunori Taniai, Yasuyuki Matsushita, Takeshi NaemuraCVPR 2014

Abstract

Stereo matching is a fundamental task in computer vision, traditionally divided into discrete methods that use fixed depth levels and continuous methods that represent depth as 3D planes. While discrete methods benefit from powerful global optimizers like Graph Cuts (GC), they often suffer from "pixelation" artifacts. Conversely, continuous methods offer sub-pixel precision but typically rely on local, sequential optimization. This paper introduces a "locally shared labels" scheme that bridges this gap, allowing GC to optimize over an infinite, continuous label space. By fusing candidate planes through submodular moves, the proposed method achieves state-of-the-art accuracy and efficiency.

The Challenge: Discrete vs. Continuous Optimization

Stereo matching involves finding correspondences between two images to estimate depth. Discrete methods are robust because they can be solved using Graph Cuts, but their fixed depth levels cannot accurately represent slanted surfaces. Continuous methods represent depth as 3D planes ($d = ax + by + c$), allowing for infinite precision. However, the infinite search space makes standard GC inapplicable. Previous continuous approaches, such as PatchMatch Stereo, use sequential pixel-by-pixel updates which are prone to local minima and difficult to parallelize.

Proposed Method: Locally Shared Labels

The authors propose a framework that combines the global optimization of Graph Cuts with the randomized search of PatchMatch.

1. 3D Plane Representation and Label Sharing

Instead of a single depth value, every pixel is assigned a 3D plane. To manage the infinite search space, each pixel maintains a small set of candidate planes. The core innovation is the locally shared labels scheme: these candidates are shared with neighboring pixels and larger regions.

Locally shared labels and region labels for 1D and 2D images.

2. Fusion Moves and Submodularity

The algorithm iteratively improves the depth map using "fusion moves." In each step, "proposals" (candidate depth maps) are generated by pulling labels from neighbors. A binary choice is then made for every pixel between its current plane and a proposed plane. The authors designed these proposals to ensure submodularity, guaranteeing that Graph Cuts can find the mathematically optimal fusion of two maps.

3. Multi-scale Region Labels

To handle large untextured areas and accelerate convergence, the method employs "region labels" (e.g., 5x5 or 25x25 grids). This allows high-quality planes discovered in one part of a surface to propagate across the entire region in a single iteration.

Key Results and Evaluation

The method was evaluated on the Middlebury stereo benchmark, focusing on 0.5-pixel accuracy. This metric measures the percentage of pixels with a depth error smaller than half a pixel.

Performance comparison on the Middlebury stereo benchmark showing the proposed method's top ranking.

At the time of publication, the method achieved the first place in average rank for sub-pixel accuracy among over 155 competing methods. Beyond accuracy, the GPU implementation demonstrated significant efficiency, converging to a lower energy state faster than previous sequential methods like PMBP. Visually, the results exhibit cleaner edges and smoother surfaces, particularly in complex scenes with slanted objects.

Conclusion

By introducing locally shared labels, this work successfully brings the power of global Graph Cut optimization to the continuous stereo matching domain. While the current model does not explicitly handle occlusions, its framework is highly parallelizable and sets a new standard for sub-pixel accuracy. Future work may extend this concept to other correspondence problems such as optical flow.

Summary updated

BibTeX
@inproceedings{taniai2014graph,
  author = {Tatsunori Taniai and Yasuyuki Matsushita and Takeshi Naemura},
  title = {{Graph Cut Based Continuous Stereo Matching Using Locally Shared Labels}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.209},
}
Figure