Abstract
Indirect Time-of-Flight (I-ToF) sensors are widely used in mobile devices for depth sensing but struggle in "wild" environments characterized by large distances, bright ambient light, and phase wrapping. This paper introduces "Wild ToFu," a deep learning framework that fuses raw I-ToF correlation signals with RGB images. By employing a multi-step alignment strategy and an attention-based fusion module, the proposed method achieves a 40% improvement in depth accuracy over existing baselines, effectively extending the reliable range of consumer-grade ToF sensors.
Introduction: The "Lab vs. Wild" Problem
Indirect Time-of-Flight (I-ToF) sensors, common in smartphones for AR and portrait mode, measure depth by emitting modulated infrared light and calculating the phase shift of the reflection. While effective in controlled, short-range settings, these sensors fail in real-world "wild" conditions. Signal strength decays quadratically with distance, and ambient light introduces significant shot noise. A critical failure mode is phase wrapping: because the signal is periodic, the sensor cannot distinguish between distances that are multiples of the modulation wavelength (e.g., 2m vs 7m), leading to catastrophic depth errors.
Methods: Multi-Modal Fusion and Alignment
The "Wild ToFu" architecture processes raw correlation signals—the four phase-shifted IR images captured by the sensor—rather than the pre-processed (and often erroneous) depth maps produced by on-board hardware.
Architecture Overview
The network utilizes a two-branch backbone with separate encoders for ToF and RGB data. The core innovation lies in the multi-step alignment and fusion process:
- Intrinsic Alignment: Warping the RGB image to the ToF sensor's field of view.
- Implicit Alignment: Fusing features at a low-resolution (1/32) bottleneck. This global context is crucial for resolving phase wrapping, as the network can infer the general scene layout to "guess" the correct distance range.
- Explicit Alignment: During upsampling, intermediate depth estimates and known camera extrinsics are used to warp ToF features onto the RGB viewpoint.
- Attention-Based Fusion: A custom module (using Sigmoid-based attention) dynamically weights ToF and RGB features based on their local reliability.
Datasets and Experimental Setup
The authors evaluated their method using a challenging multi-modal dataset captured with a Lucid I-ToF camera and a standard RGB camera. Ground truth was established using a high-quality structured light sensor (Intel RealSense). Unlike standard synthetic datasets, this collection includes real-world indoor scenes with significant ambient light and distances exceeding typical manufacturer limits.
Key Results and Insights
The proposed method demonstrates a significant leap in performance:
- Quantitative Gains: Wild ToFu achieved an RMSE of 0.56m, a 40.4% improvement over the ToFNet baseline (0.99m).
- Qualitative Improvements: The model successfully eliminates large depth "blobs" caused by phase wrapping and reduces "ghosting" artifacts at object boundaries.
- The Power of Global Context: The low-resolution bottleneck proved essential for phase unwrapping, allowing the model to use environmental cues to resolve distance ambiguities.
Limitations and Future Work
While "Wild ToFu" significantly improves indoor performance, outdoor operation in direct sunlight remains a challenge due to extreme IR noise. Additionally, the model currently assumes fixed sensor extrinsics. Future research may explore using epipolar geometry to make the fusion process even more robust to camera misalignments.
Summary updated