TL;DR
This paper introduces a novel end-to-end learning framework that jointly optimizes a camera's optical properties (specifically, a phase mask) and a deep neural network for monocular depth estimation. By designing a phase mask that creates a depth-dependent rotating point spread function (RPSF), the system encodes strong depth cues into single images, leading to more accurate depth estimation with a simpler network and less training data. The framework also includes a deblurring module to recover sharp images.
What Problem Does This Paper Address?
Estimating depth from a single RGB image is a notoriously ill-posed problem because 2D images inherently lack rich depth information. Traditional approaches often rely on complex imaging systems or sophisticated post-processing. While coded apertures can encode depth cues via depth-dependent Point Spread Functions (PSFs), they often suffer from image quality degradation and require separate optimization of optics and algorithms, leading to suboptimal performance. This paper aims to bridge this gap by proposing an end-to-end learning system that jointly designs the optical element (phase mask) and the depth estimation network, while also addressing image quality issues.
Methods
The core of the proposed method is an end-to-end learning framework with three main stages:
- Joint Phase Mask and Depth Network Optimization: A novel phase mask design, which generates a Rotating Point Spread Function (RPSF) dependent on defocus, is jointly optimized with a U-Net-based depth estimation network (DEPTH-DNN). This stage uses a differentiable physical model of the aperture mask and an accurate simulation of the camera imaging pipeline. The phase mask is parameterized by a few key design parameters (N for number of lobes, € for confinement, and L for Fresnel zones), which are learned.
- Realistic Camera Simulation: The optimized phase mask is integrated into a simulated camera model, including a Bayer Color Filter Array (CFA), sensor noise (Gaussian and Poisson), and an Analog-to-Digital Converter (ADC), to generate realistic RPSF-coded images.
- Fine-tuning and Image Deblurring: The DEPTH-DNN is fine-tuned on noisy simulated images. Simultaneously, a separate deep learning module (IMAGE-DNN) is trained to perform non-blind and non-uniform image deblurring, recovering a sharp, all-in-focus image from the RPSF-blurred input.
The RPSF design is based on a Fresnel-zone approach, where the phase profile is carefully crafted to create rotation that correlates with depth. The differentiability of the phase mask design is achieved through approximations that allow for gradient back-propagation.
Datasets
The paper utilizes several datasets for training and evaluation:
- FlyingThings3D: A subset of this synthetic dataset is used for the joint optimization of the phase mask and DEPTH-DNN, and for training the IMAGE-DNN.
- NYUV2: This dataset is used to train and evaluate DEPTH-DNN on real-world indoor scenes. A subset of 50k samples was used for training.
- SUNRGBD: This dataset is used to evaluate the generalization capability of the trained DEPTH-DNN on a different set of indoor scenes.
Key Insights and Ideas
- Joint Optimization is Key: Learning the phase mask design and the depth estimation network simultaneously leads to significantly better performance than optimizing them separately. The learned RPSF effectively encodes depth cues.
- RPSF as a Powerful Depth Cue: The rotating nature of the RPSF, controlled by the phase mask parameters, provides a strong and unambiguous correlation with depth, simplifying the task for the neural network.
- Simpler Networks, Better Performance: By leveraging the strong depth cues from the engineered RPSF, the proposed method achieves state-of-the-art results with a simpler U-Net architecture and less training data compared to many competing methods.
- Deblurring for Enhanced Output: The inclusion of an image deblurring module is crucial for recovering high-quality, sharp images, which is a significant challenge with coded aperture systems.
- Parameterization Matters: The choice of parameterizing the phase mask with a few key values (N, €, L) rather than a complex free-form design helps avoid local minima and leads to more interpretable and effective RPSFs.
Key Results
- Synthetic Data (FlyingThings3D): Achieved an RMSE of 0.392 on the test set with noise-free RPSF-blurred inputs. With noisy inputs, the RMSE increased to 0.712, demonstrating robustness.
- Real Data (NYUV2): Achieved a significantly lower RMSE of 0.267, outperforming competing methods that used larger training sets or more complex models. The proposed method also achieved the highest score for the accuracy metric δ₁ (95.2%).
- Generalization (SUNRGBD): Outperformed state-of-the-art methods on the SUNRGBD dataset, achieving a lower RMSE (0.335) and Log10 error (0.034), and the highest accuracy for δ₁ (93.7%).
- Image Deblurring: The recovered images showed a PSNR increase of 5.5 dB (from 19.01 dB to 24.46 dB) and an SSIM improvement from 0.611 to 0.760 compared to the blurred inputs. The proposed deblurring method significantly outperformed traditional Wiener deconvolution, which struggled with spatially variant blur.
Limitations and Future Work
- Artifacts in Deblurring: While the deblurring module is effective, some ringing artifacts can still be present, especially around object edges, due to the nature of the Wiener filter and the circular periodicity assumption. The authors suggest that more advanced blending techniques could mitigate this.
- Fabrication: The paper mentions future work focusing on the physical fabrication of the phase mask for integration into a real camera system.
- Real-time Performance: While the network complexity is reduced, achieving real-time performance on high-resolution images would still require further optimization.
- Semantic Ambiguity: The paper notes that semantic-based approaches can struggle with confusing scenes, whereas their method is more agnostic to semantics, but it can sometimes fail to learn well-defined object boundaries due to blur.
Summary updated