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

This paper presents a physically-grounded approach to a classic computational photography challenge: converting a standard 8-bit "Low Dynamic Range" (LDR) photo into a high-fidelity 32-bit "High Dynamic Range" (HDR) image. By explicitly modeling the camera's internal processing, the authors achieve state-of-the-art results in detail recovery.

The Problem: Information Loss in LDR

Standard digital cameras compress the vast range of light in the real world into an 8-bit LDR format. This process loses information in two primary ways:

  1. Quantization: Smooth gradients in shadows become "banded" or noisy because there aren't enough bits to represent subtle changes.
  2. Clipping/Saturation: Bright areas hit a ceiling and become pure white, losing all texture.
An LDR image demonstrating the challenge of high-contrast scenes where shadows lose detail.

Most deep learning attempts at "Inverse Tone Mapping" try to map LDR pixels directly to HDR pixels. However, this paper argues that treating the problem as a "reverse engineering" task of the camera's internal processing leads to more physically accurate results.

Methodology: Reversing the Camera Pipeline

The authors model the LDR formation pipeline as three distinct steps: clipping, non-linear mapping (via a Camera Response Function or CRF), and quantization. To reverse this, they propose a modular architecture consisting of three specialized sub-networks:

  • Dequantization-Net: A U-Net that focuses on under-exposed regions, learning to smooth out banding artifacts and remove quantization noise.
  • Linearization-Net: This step performs radiometric calibration. It estimates the inverse CRF to convert non-linear pixel values back into linear scene irradiance. It utilizes a Spatial-aware soft histogram layer and enforces a monotonically increasing constraint to ensure physical consistency.
  • Hallucination-Net: This network tackles over-exposed regions. Since clipped data is physically gone, the network "hallucinates" textures based on surrounding context, constrained to predict only positive residuals.

Finally, a Refinement-Net ties these components together, and the entire system is fine-tuned end-to-end to minimize error accumulation.

Key Results and Insights

The proposed method consistently outperformed previous state-of-the-art models across multiple metrics, including the perception-based HDR-VDP-2 score.

A reconstructed HDR image showing significantly improved detail and balanced exposure in complex lighting.

Key Insights:

  • Domain Knowledge: A modular network mimicking physical processes outperforms generic deep architectures by narrowing the optimization search space.
  • Physical Constraints: Enforcing rules like monotonicity in the CRF prevents "unphysical" artifacts like inverted colors or darkening in bright spots.
  • User Preference: In a study with 200 participants, roughly 70% of users preferred this method's results over competing algorithms.

Conclusion

By incorporating domain knowledge of the camera pipeline and physical constraints, this modular architecture provides a robust solution for single-image HDR reconstruction. While it does not yet explicitly model complex effects like lens flare or extreme sensor noise, it sets a new benchmark for recovering high-fidelity details from standard photographs.

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