Introduction
Defocus blur is a common artifact in photography, particularly when using wide apertures to capture more light. While shallow depth of field is often used for artistic effect, it poses a significant challenge for computer vision tasks like autonomous driving or 3D mapping, where "all-in-focus" imagery is required. Because defocus blur is spatially varying—dependent on an object's distance from the focal plane—reversing it from a single conventional image is an ill-posed problem. It is often impossible to distinguish between a naturally blurry edge and a sharp edge that has been defocused.
Leveraging Dual-Pixel Hardware
This research addresses the deblurring problem by utilizing Dual-Pixel (DP) sensor technology, which is already present in many modern smartphones and DSLRs but typically used only for autofocus. In a DP sensor, each pixel is split into two independent photodiodes (left and right) positioned under a single microlens.
When an object is perfectly in focus, the light rays hitting both photodiodes are identical. However, for out-of-focus regions, a detectable "phase shift" or disparity occurs between the left and right sub-aperture views. This physical disparity provides a direct, pixel-level measurement of the blur amount, transforming deblurring from a guessing game into a geometry problem.
The DPDNet Approach
The authors propose DPDNet, a deep neural network based on a symmetric encoder-decoder architecture. Unlike traditional single-image deblurring methods, DPDNet takes a 6-channel input consisting of both the left and right DP views. By processing these views simultaneously, the network can exploit the physical disparity to calculate the precise blur kernel at every pixel.
To train this model, the authors created the DP Defocus Blur Dataset, comprising 500 unique scenes. Each scene includes a blurred image captured at a wide aperture ($f/4$), its corresponding DP sub-aperture views, and a ground-truth sharp image captured at a narrow aperture ($f/22$).
Results and Performance
DPDNet demonstrates significant improvements over state-of-the-art single-image methods in both quality and efficiency. Quantitatively, it outperforms existing models like EBDB and DMENet in PSNR and SSIM metrics. Most notably, DPDNet is approximately 1,200 times faster than traditional methods, processing a high-resolution image in roughly 0.5 seconds compared to over 10 minutes for non-blind deconvolution approaches.
The model also shows remarkable generalization capabilities, effectively deblurring images captured at various apertures beyond its training set. Furthermore, the authors demonstrated that deblurring with DPDNet enhances the accuracy of downstream tasks such as semantic segmentation and depth estimation.
Conclusion
By repurposing "ignored" data from existing camera hardware, this work provides a highly efficient solution for spatially varying defocus deblurring. The synergy between hardware-specific data (DP disparity) and deep learning (DPDNet) offers a path toward real-time, high-quality "all-in-focus" photography without the need for specialized new sensors.
Summary updated