It is a challenging task to recover all-in-focus 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 existing DP defocus deblurring methods achieving impressive results, they directly take naive concatenation of DP views as input, while neglecting the disparity between left and right views in the regions out of camera's depth of field (DoF). 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 all-in-focus 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. And 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 all-in-focus 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.
翻译:在现实世界应用中,从单一的模糊模糊图像中恢复全焦点图像是一项具有挑战性的任务。在许多现代相机上,双像素(DP)传感器创建了双图像视图,在此基础上可以利用立体信息来降低分流。尽管现有的DP脱焦分解方法取得了令人印象深刻的成果,但它们直接将DP观点的天真混凝成为投入,而忽略了各区域左面和右面观点之间的差异,而忽视了摄像头的深度(DoF)。在这项工作中,我们提议建立一个双像素调整网络(DPANet),用于降低深度分流。一般来说,DANet是一个带有跳动连接的编码-解密器。在编码中,两个带有共同参数的分支用于提取和调整左面和右面观点的深度特征,它们直接将DP观点的组合功能混为一体。由于DP观点的模糊度不同,它与右面和右面观点不相匹配。为此,我们提议在电流变和右面图像中引入新的电算值调整模块(EAM),随后将显示电路对等数据。