Deep End-to-End Alignment and Refinement for Time-of-Flight RGB-D Module

Di Qiu, Jiahao Pang, Wenxiu Sun, Chengxi Yang

Researchers from SenseTime and The Chinese University of Hong Kong have introduced DEAR (Deep End-to-End Alignment and Refinement), a framework designed to address the persistent challenges of integrating Time-of-Flight (ToF) depth sensors with standard RGB cameras in mobile devices.

The Challenge: Misalignment and Measurement Errors

While ToF sensors are increasingly common in smartphones for features like bokeh and augmented reality, they face two significant hurdles:

  1. Spatial Misalignment: Although sensors are calibrated at the factory, real-world factors such as thermal expansion, mechanical stress (drops), and the movement of Optical Image Stabilization (OIS) systems cause the relative positions of the ToF and RGB sensors to shift. This leads to "weak calibration" where static maps become inaccurate.
  2. Depth Inaccuracies: ToF sensors suffer from Multi-Path Interference (MPI), where light reflects off multiple surfaces before returning, causing the sensor to overestimate distance. Additionally, "flying pixels" often appear at object boundaries.

Existing solutions typically treat alignment and refinement as separate tasks. The DEAR framework argues that these problems are deeply coupled and should be solved jointly in an end-to-end manner.

The DEAR Framework

The proposed system consists of two primary stages: cross-modal alignment and depth refinement.

1. Cross-Modal Dense Flow Estimation

To align the disparate modalities of ToF (infrared-like amplitude) and RGB, the network employs a two-stage process:

  • Rough Flow: A modified FlowNetC architecture estimates an initial correspondence between the RGB image and the ToF amplitude image.
  • Flow Refinement: The system utilizes the initial ToF depth data to estimate updated camera parameters (principal points and translation). This geometric information is fused with the rough flow in a U-Net to produce a final, high-precision alignment.
The DEAR alignment pipeline: (a) Rough optical flow estimation and (b) Flow refinement using ToF depth data as a geometric constraint.

2. ToF Kernel Prediction Network (Refinement)

Once aligned, the depth map is refined using an improved Kernel Prediction Network (KPN). The authors introduced two key innovations here:

  • Bias-First Prior: Instead of the standard kernel-then-bias approach, the network adds a bias first to correct systematic MPI errors before applying the kernel for edge-aware smoothing.
  • Kernel Normalization: Predicted kernels are normalized to prevent gradient vanishing, ensuring the network effectively utilizes the filtering process.

Datasets and Training

Due to the difficulty of capturing ground truth for ToF errors in the real world, the researchers utilized a mix of synthetic and real data:

  • ToF-FlyingThings3D: A synthetic dataset of 6,250 views created via transient rendering to simulate realistic light propagation and MPI artifacts.
  • Real-World Data: 400 scenes captured with Panasonic ToF-equipped smartphones across various environments.
  • FLAT Dataset: Used as a benchmark to validate refinement performance against existing state-of-the-art models.

Key Results

The DEAR framework demonstrates significant improvements across both alignment and depth accuracy metrics. The flow refinement module reduced the Average End-Point Error (AEPE) on real-world data by approximately 10% compared to using rough flow alone.

In terms of depth quality, the ToF-KPN achieved a Mean Absolute Error (MAE) of 1.51 cm on the synthetic test set, significantly outperforming standard U-Nets (1.79 cm) and previous methods like DeepToF (4.69 cm). Most impressively, the full end-to-end pipeline reduced total depth error from 14.61 cm in unaligned, raw data to just 2.81 cm.

Comparison between (a) an unaligned, erroneous depth image and (b) the final refined result produced by the DEAR framework.

Conclusion and Future Work

DEAR provides a robust solution for mobile RGB-D modules by treating alignment as a dynamic problem and MPI as a systematic bias. While the current model assumes a four-parameter calibration shift, future iterations could expand to handle complex lens distortions or highly specular materials where standard light transport assumptions fail. Despite the computational intensity of optical flow and KPNs, the framework sets a new benchmark for high-quality depth sensing on mobile hardware.

Summary updated

BibTeX
@inproceedings{qiu2019deep,
  author = {Di Qiu and Jiahao Pang and Wenxiu Sun and Chengxi Yang},
  title = {{Deep End-to-End Alignment and Refinement for Time-of-Flight RGB-D Module}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.01009},
}
Figure