HyperDepth: Learning Depth from Structured Light without Matching

Sean Ryan Fanello, Christoph Rhemann, Vladimir Tankovich, Adarsh Kowdle, Sergio Orts-Escolano, David Kim, Shahram IzadiCVPR 2016

Abstract

Structured light sensors are popular due to their robustness to untextured scenes and multipath. These systems triangulate depth by solving a correspondence problem between each camera and projector pixel. This is often framed as a local stereo matching task, correlating patches of pixels in the observed and reference image. However, this is computationally intensive, leading to reduced depth accuracy and framerate. We contribute an algorithm for solving this correspondence problem efficiently, without compromising depth accuracy. For the first time, this problem is cast as a classification-regression task, which we solve extremely efficiently using an ensemble of cascaded random forests. Our algorithm scales in number of disparities, and each pixel can be processed independently, and in parallel. No matching or even access to the corresponding reference pattern is required at runtime, and regressed labels are directly mapped to depth. Our GPU-based algorithm runs at a 1KHz for 1.3MP input/output images, with disparity error of 0.1 subpixels. We show a prototype high framerate depth camera running at 375Hz, useful for solving tracking-related problems. We demonstrate our algorithmic performance, creating high resolution real-time depth maps that surpass the quality of current state of the art depth technologies, highlighting quantization-free results with reduced holes, edge fattening and other stereo-based depth artifacts.

Introduction

Traditional structured light depth cameras, such as the original Microsoft Kinect, rely on projecting a known infrared pattern onto a scene. Depth is calculated by solving a correspondence problem: for every pixel in the captured infrared (IR) image, the system must find its matching location in the reference projector pattern. This "stereo matching" is typically performed by correlating local patches of pixels.

However, this matching process presents a significant computational bottleneck. It is often slow, power-intensive, and prone to artifacts like "quantization" (staircase effects in depth) and "edge fattening" (blurring at object boundaries). HyperDepth addresses these issues by eliminating the matching step entirely, reformulating depth estimation as a high-speed machine learning task.

Methods: Depth Estimation as Recognition

The core innovation of HyperDepth is treating the correspondence problem as a learning-based recognition task. Instead of searching for a match, the algorithm learns to recognize the local structure of the projected pattern and directly predict its coordinates in the projector's space.

The HyperDepth pipeline: a local patch from the IR image is fed into a cascaded random forest that performs classification to find the general area and regression to predict subpixel coordinates.

The system utilizes an ensemble of cascaded random forests. To handle the complexity of the pattern and avoid ambiguities, a specific classifier is trained for every horizontal scanline of the image. The decision trees are structured in two stages:

  1. Classification: The initial levels of the tree identify the general pixel region.
  2. Regression: The final levels switch to regression, allowing for the prediction of continuous, subpixel-accurate labels ($\hat{c}$).

The features used are simple "pixel-difference tests" within a small 32x32 neighborhood. These tests are computationally trivial and illumination-invariant, enabling extreme processing speeds on modern GPUs. Because each pixel is processed independently, the algorithm is inherently parallel.

Results and Evaluation

HyperDepth was trained on 10,000 frames of diverse scenes, with ground truth labels generated using a high-quality offline PatchMatch Stereo algorithm. Evaluation against an industrial-grade ATOS 3D scanner confirmed high precision.

Qualitative comparison of depth maps. HyperDepth produces results comparable to the high-quality PatchMatch reference but at significantly higher speeds.

Key performance metrics include:

  • Extreme Speed: The GPU implementation achieves a frame rate of 1KHz (1ms per frame) for 1.3MP images.
  • High Accuracy: It reaches a disparity error of 0.1 subpixels, outperforming standard stereo benchmarks.
  • Robustness: A hardware prototype running at 375Hz successfully tracked high-speed events, such as a cup being smashed or a ping-pong ball in flight.
  • Quality: The resulting depth maps exhibit fewer holes and sharper edges compared to consumer sensors like the Kinect V2 or Intel RealSense.

Limitations and Future Work

Despite its performance, HyperDepth has some constraints. The trained models are specific to the camera-projector calibration; any physical change in the rig requires retraining. Additionally, the per-scanline specialization, while effective, is memory-intensive. Future research could explore more compact, universal classifiers that exploit pattern repetitions. Finally, the system's accuracy is currently bounded by the quality of the "silver standard" training data, suggesting that better offline optimization could further improve results.

Summary updated

BibTeX
@inproceedings{fanello2016hyperdepth,
  author = {Sean Ryan Fanello and Christoph Rhemann and Vladimir Tankovich and Adarsh Kowdle and Sergio Orts-Escolano and David Kim and Shahram Izadi},
  title = {{HyperDepth: Learning Depth from Structured Light without Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2016},
  url = {https://openreview.net/forum?id=BkWFXgf_br},
}
Figure