Simulating Dual-Pixel Images From Ray Tracing For Depth Estimation
Fengchen He, Dayang Zhao, Hao Xu, Tingwei Quan, Shaoqun Zeng
TL;DR
This work tackles the lack of real dual-pixel depth data by introducing Sdirt, a realism-oriented DP image simulation framework that combines a ray-traced, aberration-aware DP PSF simulator with a per-pixel PSF predictor. By rendering DP images from RGBD sources through per-pixel PSFs, Sdirt enables training of a depth-from-dual-pixel model that generalizes better to real DP data. The authors also collect the DP119 real-world test set to benchmark domain gap bridiging, and demonstrate that a DfDP model trained with Sdirt-based data achieves superior depth estimation across planar, box, and casual scenes. Overall, Sdirt provides a practical path to produce realistic DP data for smartphone, automotive, and microscope imaging scenarios where hardware constraints limit DP data collection. The approach emphasizes aberration and phase-splitting cues, enhancing the realism and transferability of learned depth estimation models.
Abstract
Many studies utilize dual-pixel (DP) sensor phase characteristics for various applications, such as depth estimation and deblurring. However, since the DP image features are entirely determined by the camera hardware, DP-depth paired datasets are very scarce, especially when performing depth estimation on customized cameras. To overcome this, studies simulate DP images using ideal optical system models. However, these simulations often violate real optical propagation laws, leading to poor generalization to real DP data. To address this, we investigate the domain gap between simulated and real DP data, and propose solutions using the Simulating DP images from ray tracing (Sdirt) scheme. The Sdirt generates realistic DP images via ray tracing and integrates them into the depth estimation training pipeline. Experimental results show that models trained with Sdirt-simulated images generalize better to real DP data. The code and collected datasets will be available at github.com/LinYark/Sdirt
