Abstract: It is a challenging task to recover sharp image from a single defocus blurry image in real-world applications. On many modern cameras, dual-pixel (DP) sensors create two-image views, based on which stereo information can be exploited to benefit defocus deblurring. Despite the impressive results achieved by existing DP defocus deblurring methods, the misalignment between DP image views is still not studied, leaving room for improving DP defocus deblurring. In this work, we propose a Dual-Pixel Alignment Network (DPANet) for defocus deblurring. Generally, DPANet is an encoder-decoder with skip-connections, where two branches with shared parameters in the encoder are employed to extract and align deep features from left and right views, and one decoder is adopted to fuse aligned features for predicting the sharp image. Due to that DP views suffer from different blur amounts, it is not trivial to align left and right views. To this end, we propose novel encoder alignment module (EAM) and decoder alignment module (DAM). In particular, a correlation layer is suggested in EAM to measure the disparity between DP views, whose deep features can then be accordingly aligned using deformable convolutions. DAM can further enhance the alignment of skip-connected features from encoder and deep features in decoder. By introducing several EAMs and DAMs, DP views in DPANet can be well aligned for better predicting latent sharp image. Experimental results on real-world datasets show that our DPANet is notably superior to state-of-the-art deblurring methods in reducing defocus blur while recovering visually plausible sharp structures and textures.
Introduction
Defocus blur occurs when a scene's depth falls outside a camera's depth of field (DoF). While single-image deblurring is a classic "ill-posed" problem, many modern smartphones and DSLRs utilize Dual-Pixel (DP) sensors. These sensors provide two sub-aperture views (left and right) for every pixel, offering stereo information that can be exploited to guide the deblurring process.
However, a significant challenge remains: in regions with heavy defocus blur, the left and right views are spatially misaligned. Furthermore, neither view is perfectly aligned with the latent "sharp" image. Previous DP deblurring methods typically concatenated these views without addressing this disparity, which limits performance as the network struggles to fuse inconsistent features.
Proposed Method: DPANet
To address the misalignment issue, we propose DPANet, an encoder-decoder architecture with skip connections designed for "alignment-aware" deblurring. The network features two primary innovations to handle view disparity at different stages of processing.
Encoder and Decoder Alignment Modules
- Encoder Alignment Module (EAM): In the encoder, two branches sharing parameters extract features from the left and right views. The EAM uses a correlation layer to measure the disparity between these views. It then employs modulated deformable convolutions (DCNv2) to progressively align the deep features of the two views. Shared weights are used to force the network to learn a consistent feature space, making the alignment more robust.
- Decoder Alignment Module (DAM): Skip connections can introduce misaligned "shallow" features into the decoder. The DAM ensures that these skip-connected features are properly aligned with the decoder’s current upsampled features before final fusion.
By deploying multiple EAMs and DAMs, DPANet uses stereo disparity as a cue to guide restoration rather than allowing it to act as a source of noise.
Experimental Results
DPANet was evaluated on the DPDD (Dual-Pixel Defocus Deblurring) Dataset, containing 500 high-quality image pairs, and a Google Pixel Dataset of real-world smartphone images.
- Quantitative Performance: DPANet achieved a PSNR of 26.80 dB on the DPDD dataset, outperforming previous state-of-the-art methods like Restormer (26.66 dB) and DPDNet (25.13 dB).
- Efficiency: Despite the added alignment modules, DPANet is computationally efficient, with fewer parameters and lower FLOPs than many transformer-based competitors.
- Qualitative Quality: Visual comparisons demonstrate that DPANet excels at recovering fine, repetitive structures (e.g., wire meshes or leaf veins) where other methods often produce "ghosting" artifacts due to unresolved misalignment.
Conclusion
DPANet demonstrates that explicitly addressing spatial misalignment is crucial for effective dual-pixel defocus deblurring. By integrating specialized alignment modules into an encoder-decoder framework, the model achieves superior texture recovery and structural clarity on real-world datasets. Future work may explore extending this approach to video deblurring and other sensor architectures like Quad-Bayer sensors.
Summary updated