Deep Optics for Single-shot High-dynamic-range Imaging

Christopher A. Metzler, Hayato Ikoma, Yifan Peng, Gordon Wetzstein · DOI

Abstract

High-dynamic-range (HDR) imaging is crucial for many computer graphics and vision applications. Yet, acquiring HDR images with a single shot remains a challenging problem. Whereas modern deep learning approaches are successful at hallucinating plausible HDR content from a single low-dynamic-range (LDR) image, saturated scene details often cannot be faithfully recovered. Inspired by recent deep optical imaging approaches, we interpret this problem as jointly training an optical encoder and electronic decoder where the encoder is parameterized by the point spread function (PSF) of the lens, the bottleneck is the sensor with a limited dynamic range, and the decoder is a convolutional neural network (CNN). The lens surface is then jointly optimized with the CNN in a training phase; we fabricate this optimized optical element and attach it as a hardware add-on to a conventional camera during inference. In extensive simulations and with a physical prototype, we demonstrate that this end-to-end deep optical imaging approach to single-shot HDR imaging outperforms both purely CNN-based approaches and other PSF engineering approaches.

Introduction

Digital camera sensors face a fundamental physical constraint: the full well capacity of their pixels. When scene radiance exceeds this limit, pixels saturate, leading to "clipped" regions where all visual information is lost. While multi-exposure bracketing is a standard solution, it is unsuitable for dynamic scenes. Recent deep learning methods attempt to hallucinate missing details from single low-dynamic-range (LDR) images, but these are often unfaithful to the original scene. This work proposes a "Deep Optics" approach: physically encoding high-dynamic-range information into the LDR capture using a custom-designed lens, which is then decoded by a neural network.

Methods: End-to-End Optical-Electronic Co-design

The core innovation lies in treating the imaging pipeline as an end-to-end autoencoder. The "encoder" is a physical Diffractive Optical Element (DOE) placed on the camera lens, and the "decoder" is a convolutional neural network (CNN).

1. Optical Encoding

The DOE is defined by a microscopic surface profile that creates a specific Point Spread Function (PSF). Unlike a standard sharp lens, this optimized PSF creates structured "satellite" copies of the image. These copies are lower in intensity, effectively preserving information from bright scene regions that would otherwise saturate the primary image.

2. Differentiable Simulation and Training

To optimize the system, the authors developed a differentiable model of light transport based on Fourier optics. This allows for backpropagation from the reconstruction error at the end of the pipeline all the way back to the physical parameters of the DOE surface. The system was trained on a large dataset of nearly 60,000 HDR image patches, computationally saturated to simulate sensor behavior.

3. Electronic Decoding

A U-Net architecture serves as the electronic decoder. It learns to deconvolve the "messy" optically encoded LDR image, removing the structured blur while simultaneously utilizing the encoded satellite information to reconstruct high-fidelity details in saturated regions.

Results and Evaluation

The system was validated through both extensive simulations and a physical prototype using a Canon DSLR equipped with a custom-fabricated PDMS DOE.

Figure 1: Comparison of standard LDR capture, the optically encoded E2E measurement, and the final E2E reconstruction. The rightmost panels show the physical optical setup and zoom-ins of recovered filament details.

Quantitative Performance

In simulations, the Deep Optics approach achieved an HDR-VDP-2 score of 60.6, significantly outperforming purely software-based CNN hallucination (58.6) and previous PSF engineering methods like "Star PSF" (56.7).

Real-World Reconstruction

Physical experiments demonstrated the system's ability to recover intricate details, such as light bulb filaments, that were completely invisible in standard LDR photographs. By leveraging actual photons redirected by the DOE rather than relying solely on learned priors, the reconstruction remains faithful to the physical scene.

Discussion and Limitations

While the approach shows significant promise, several challenges remain. The diffractive nature of the DOE introduces chromatic aberrations; although the CNN is trained to mitigate these, some artifacts persist. Additionally, the computational cost of U-Net inference may limit immediate deployment in real-time mobile applications. Future work could involve integrating these optimized optical profiles directly into primary lens designs to minimize hardware footprint.

Conclusion

By co-designing optics and algorithms, this work demonstrates that physical hardware can be "tuned" to assist neural networks in solving traditionally "impossible" inverse problems like single-shot HDR imaging. This paradigm shift suggests that the best optics for machine-learning-based vision systems may differ significantly from those designed for human viewing.

Summary updated

BibTeX
@inproceedings{metzler2019deep,
  author = {Christopher A. Metzler and Hayato Ikoma and Yifan Peng and Gordon Wetzstein},
  title = {{Deep Optics for Single-shot High-dynamic-range Imaging}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr42600.2020.00145},
}
Figure