Defocus Deblurring Using Dual-Pixel Data
About
Defocus blur arises in images that are captured with a shallow depth of field due to the use of a wide aperture. Correcting defocus blur is challenging because the blur is spatially varying and difficult to estimate. We propose an effective defocus deblurring method that exploits data available on dual-pixel (DP) sensors found on most modern cameras. DP sensors are used to assist a camera's auto-focus by capturing two sub-aperture views of the scene in a single image shot. The two sub-aperture images are used to calculate the appropriate lens position to focus on a particular scene region and are discarded afterwards. We introduce a deep neural network (DNN) architecture that uses these discarded sub-aperture images to reduce defocus blur. A key contribution of our effort is a carefully captured dataset of 500 scenes (2000 images) where each scene has: (i) an image with defocus blur captured at a large aperture; (ii) the two associated DP sub-aperture views; and (iii) the corresponding all-in-focus image captured with a small aperture. Our proposed DNN produces results that are significantly better than conventional single image methods in terms of both quantitative and perceptual metrics -- all from data that is already available on the camera but ignored. The dataset, code, and trained models are available at https://github.com/Abdullah-Abuolaim/defocus-deblurring-dual-pixel.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Defocus Deblurring | DP Dataset Combined 1.0 (test) | PSNR25.13 | 63 | |
| Defocus Deblurring | DP Dataset Outdoor 1.0 (test) | PSNR22.9 | 60 | |
| Defocus Deblurring | DP Dataset Indoor 1.0 (test) | PSNR27.48 | 54 | |
| Defocus Deblurring | Noisier DPD v1 (simulated noise) (test) | PSNR25.09 | 24 | |
| Defocus Deblurring | RTF (test) | PSNR23.65 | 24 | |
| Single Image Defocus Deblurring | DPDD Outdoor Scenes (test) | PSNR22.25 | 20 | |
| Defocus Deblurring | DPD (test) | PSNR25.13 | 19 | |
| Defocus Deblurring | DPD Outdoor Scenes | PSNR22.9 | 17 | |
| Single Image Defocus Deblurring | DPD Indoor Scenes | PSNR27.48 | 14 | |
| Single Image Defocus Deblurring | DPD (Combined) | PSNR25.13 | 14 |