Inverse Rectification for Efficient Procam Pattern Correspondence

Yubo Qiu, Jonathon Malcolm, Sheikh Ziauddin, Michael Greenspan, Abhay VatooWACV 2020

TL;DR

This paper introduces "inverse rectification," a novel technique for efficient and robust 3D depth sensing using a projector-camera (procam) system. By pre-warping projected patterns, it simplifies correspondence matching to a constant-time table lookup, enabling high-speed and accurate depth extraction, particularly for applications like autonomous navigation.

What Problem Does This Paper Address?

Accurate and efficient 3D depth sensing is crucial for various applications, from robotics to autonomous vehicles. Existing methods, like structured light and time-of-flight sensors, have trade-offs in accuracy, speed, and complexity. A key challenge in many active 3D sensing techniques, particularly structured light, is establishing correspondences between projected patterns and the captured image. This correspondence matching can be computationally intensive, limiting real-time performance. The paper aims to significantly speed up this process by developing a novel method that makes correspondence matching nearly instantaneous.

Methods

The core innovation is inverse rectification. Traditionally, rectification in stereo vision aligns two camera images so their epipolar lines are parallel. This paper applies a similar concept but in a "pre-emptive" way to the projector image before projection.

Here's how it works:

  • Standard Procam: A projector casts a pattern onto a scene, and a camera captures the scene with the projected pattern. To find depth, the system needs to match points in the projected pattern to points in the camera image. This often involves complex search algorithms.
  • Inverse Rectification: The authors first define a "rectifying homography" for the projector-camera pair. Then, they apply the inverse of this homography to the projector's pattern itself. This warped pattern is then projected.
  • The Magic: When this inverse-rectified pattern is projected and then viewed through the camera's rectified view, the projected features (e.g., vertical dashes) align perfectly with the camera's epipolar lines. This means that for each column in the rectified camera image, there's a unique corresponding feature from the projector pattern.
  • Simplified Correspondence: Instead of a complex search, finding a correspondence becomes a simple table lookup. Once a feature is found in the camera image, its column index directly tells you which projector feature it corresponds to. The difference in row positions (disparity) then directly relates to depth.

The paper also introduces several enhancements:

  • Single Dash per Epipolar Line: The simplest pattern uses one white dash per column in the rectified projector space.
  • Disparity Bounding: Allows multiple dashes per epipolar line to increase pattern density, with a defined maximum disparity range.
  • Dual Pattern Subtraction: Projects alternating patterns (one with white dashes on gray, the other with black dashes on gray) and subtracts consecutive frames. This doubles feature resolution and improves signal-to-noise ratio.
  • Disparity Caching: Stores disparity values from the previous frame to speed up the search in the current frame, especially for static scenes.

Datasets

The authors created three custom datasets for evaluation:

  • Swan Translate: 12 image pairs with a swan moving across the scene.
  • Swan Rotate: 13 image pairs with the swan rotated 360 degrees.
  • Plane Forward: 5 image pairs where the projector screen moves towards the camera in 40 cm intervals.

These datasets are designed to test various aspects of the proposed method, including motion, rotation, and depth changes. No new benchmarks were introduced; existing consumer-level sensors were used for comparison.

Key Insights and Ideas

  • Pre-emptive Rectification: The core insight is that by warping the projector's pattern based on the camera's rectification, you can fundamentally simplify the correspondence problem. This shifts the computational burden from runtime matching to a one-time preprocessing step for pattern generation.
  • Constant-Time Lookup: The inverse rectification transforms the correspondence search from a potentially complex, iterative process into a trivial, constant-time table lookup. This is a significant performance gain.
  • Scalability: The method is shown to be scalable, allowing for a trade-off between point cloud density and frame rate.
  • Robustness through Subtraction: Dual pattern subtraction significantly improves robustness by increasing the signal-to-noise ratio, making feature extraction more reliable, especially on challenging surfaces.

Key Results

  • Efficiency: The proposed method, even when run on a general-purpose CPU, achieved a higher bandwidth (11.7 M points per second) than commercial sensors like Kinect I (2.3 M pps) and Kinect II (6.5 M pps).
  • Accuracy: Experiments showed that inverse rectification significantly improved accuracy, resulting in an average disparity closer to the ground truth and a much lower percentage of bad pixels compared to methods without prior rectification.
  • Performance Enhancements:
    • Single dash per epipolar line was faster than disparity bounding.
  • The 2-phase search and caching method yielded the greatest speed improvement, achieving 11.7 M pps.
  • Disparity caching provided a faster average runtime, though its impact varied by dataset.
  • Comparison: The proposed sensor demonstrated a higher potential frame rate than existing consumer-level sensors, with competitive bandwidth.

Limitations and Future Work

  • Hardware Optimization: The current implementation runs on a general-purpose CPU. The authors note that further hardware optimization (e.g., on FPGAs or GPUs) is expected to significantly increase performance.
  • Resolution: While speed is high, the paper mentions focusing on increasing resolution per frame in future work.
  • Scene Motion: The dual pattern subtraction method integrates motion over a time step, which might be a limitation for applications requiring precise single-frame motion capture.
  • Calibration: Like all structured light systems, accurate calibration of the projector-camera pair is essential.

The authors suggest future work will focus on parallel and optimized implementations, increasing resolution, and exploring FPGA/GPU platforms.

Summary updated

BibTeX
@inproceedings{qiu2020inverse,
  author = {Yubo Qiu and Jonathon Malcolm and Sheikh Ziauddin and Michael Greenspan and Abhay Vatoo},
  title = {{Inverse Rectification for Efficient Procam Pattern Correspondence}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
}
Figure