Single-Image HDR Reconstruction by Learning to Reverse the Camera Pipeline

Yu-Lun Liu, Wei-Sheng Lai, Yu-Sheng Chen, Yi-Lung Kao, Ming-Hsuan Yang, Yung-Yu Chuang, Jia-Bin Huang

Abstract

High Dynamic Range (HDR) imaging is essential for capturing the full range of light in a scene, yet most consumer cameras are limited to Low Dynamic Range (LDR) output. This paper presents a novel framework for single-image HDR reconstruction that explicitly models and reverses the camera pipeline. By decomposing the task into dequantization, linearization, and hallucination, the proposed method achieves state-of-the-art performance in recovering lost details and reducing artifacts like color banding and blown-out highlights.

Introduction

Standard digital cameras capture images in 8-bit LDR, discarding significant information through clipping, non-linear mapping (CRF), and quantization. Previous deep learning approaches often treated HDR reconstruction as a "black-box" problem, leading to artifacts and blurry results. This work proposes a physically-grounded approach that reverses the LDR formation process.

Methodology: Reversing the Camera Pipeline

The authors decompose the reconstruction into three specialized sub-tasks, each handled by a dedicated convolutional neural network (CNN):

  1. Dequantization-Net: A U-Net architecture designed to restore details lost to 8-bit rounding, effectively eliminating banding artifacts in smooth gradients.
  2. Linearization-Net: This network estimates the inverse Camera Response Function (CRF) to map non-linear pixel values back to linear scene irradiance. It employs a spatial-aware soft histogram layer and a monotonicity constraint to ensure physical consistency.
  3. Hallucination-Net: An encoder-decoder network that "imagines" missing information in clipped (over-exposed) regions. By predicting only positive residuals, it ensures reconstructed highlights remain brighter than the input.
Figure 1: Reconstructed HDR image demonstrating the recovery of textures and colors in over-exposed regions of a doorway.
  1. Refinement-Net: A final stage to correct residual errors from complex camera processes like sharpening or lens shading.

Key Results and Insights

The "divide and conquer" strategy proved superior to black-box models. Quantitative results on the HDR-REAL dataset showed a significant lead, with an HDR-VDP-2 score of 53.16.

Figure 2: Comparison between LDR input (top) and the reconstructed HDR output (bottom). Note the significant reduction in blown-out highlights on the road and improved detail in the cityscape.

Qualitatively, the method excels at removing contouring in dark areas and recovering realistic textures in bright windows or clouds. In a user study with 200 participants, the proposed method was preferred 70% of the time over existing state-of-the-art solutions.

Conclusion

By incorporating domain knowledge of the camera pipeline, this framework provides a robust solution for single-image HDR reconstruction. Future work will explore reversing more complex computational photography pipelines found in modern smartphones and improving hallucination in cases of extreme over-exposure.

Summary updated

BibTeX
@inproceedings{liu2020single,
  author = {Yu-Lun Liu and Wei-Sheng Lai and Yu-Sheng Chen and Yi-Lung Kao and Ming-Hsuan Yang and Yung-Yu Chuang and Jia-Bin Huang},
  title = {{Single-Image HDR Reconstruction by Learning to Reverse the Camera Pipeline}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00172},
}
Figure