Dual Pixel Exploration: Simultaneous Depth Estimation and Image Restoration

Liyuan Pan, Shah Chowdhury, Richard Hartley, Miaomiao Liu, Hongguang Zhang, Hongdong Li · DOI

Introduction

Modern smartphone and DSLR cameras increasingly rely on Dual Pixel (DP) sensors to achieve rapid autofocus. By splitting each pixel into two sub-pixels, these sensors capture two slightly different views of a scene in a single exposure. While this creates a stereo pair, the microscopic baseline and significant defocus blur present substantial hurdles for traditional computer vision algorithms. This paper, presented at CVPR 2021, proposes a paradigm shift: treating defocus blur not as a nuisance to be removed, but as a valuable geometric cue for depth estimation.

The DDDNet Architecture

The authors introduce DDDNet (DP-based Depth and Deblur Network), an end-to-end pipeline designed to jointly solve depth estimation and image restoration. The framework is built upon a rigorous mathematical model of DP optics, which demonstrates that DP disparity and defocus blur are intrinsically coupled.

The network operates in two primary stages:

  1. DepthNet: Generates an initial, coarse inverse depth map from the blurred DP input.
  2. DeblurNet: Refines the depth map while simultaneously producing a sharp, "all-in-focus" image by leveraging both the input views and the coarse depth information.

A critical innovation is the Reblur Loss. By passing the estimated sharp image and depth map through a differentiable DP simulator, the network attempts to reconstruct the original blurred input. The reconstruction error serves as a powerful physical consistency constraint, ensuring the outputs adhere to the laws of optics.

Comparison of depth estimation results: (a) Input blurred images, (b) DDDNet's estimated depth, and (c) Ground Truth depth.

Results and Impact

The proposed method was evaluated on a combination of existing benchmarks and a new real-world dataset (Our-real) captured with a Canon 5D IV.

  • Superior Restoration: DDDNet significantly outperformed previous state-of-the-art deblurring methods, achieving a PSNR of 33.21 dB on synthetic data. The resulting images exhibit sharper edges and fewer artifacts by correctly accounting for the depth-dependent nature of the blur.
  • Robust Depth Estimation: By combining "Depth-from-Stereo" (disparity) and "Depth-from-Defocus" (blur) cues, the model achieves highly accurate depth maps. The self-supervised nature of the reblur loss allows for effective fine-tuning on real-world data where ground-truth depth is often unavailable.

Conclusion

By embracing the unique geometry of Dual Pixel sensors, DDDNet demonstrates that defocus blur is a powerful feature for scene understanding. The integration of physical modeling with deep learning provides a robust path forward for high-quality mobile photography and 3D sensing. Future work aims to extend this to fully self-supervised learning from unlabeled video sequences.

Summary updated

BibTeX
@inproceedings{pan2021dual,
  author = {Liyuan Pan and Shah Chowdhury and Richard Hartley and Miaomiao Liu and Hongguang Zhang and Hongdong Li},
  title = {{Dual Pixel Exploration: Simultaneous Depth Estimation and Image Restoration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00432},
}
Figure