Lightness Modulated Deep Inverse Tone Mapping

Kanglin Liu, Gaofeng Cao, Jiang Duan, Guoping QiuarXiv 2021

TL;DR

Reconstructing High Dynamic Range (HDR) images from a single Low Dynamic Range (LDR) input is notoriously difficult, especially in over-exposed regions where details are completely lost. This paper introduces a novel deep learning framework that uses a lightness prior to adaptively modulate a convolutional neural network (CNN), enabling it to intelligently reconstruct missing details in saturated areas by leveraging surrounding spatial context.

What Problem Does This Paper Address?

Standard consumer cameras capture images in Low Dynamic Range (LDR). During this process, the physical scene undergoes several degradations: bright highlights are clipped due to sensor saturation, linear irradiance is warped by non-linear Camera Response Functions (CRFs), and dark areas suffer from quantization noise. Reversing this pipeline to recover a true HDR image from a single LDR image is called Inverse Tone Mapping (iTM).

While deep learning approaches have advanced iTM, standard CNNs suffer from a major flaw: they apply the same convolutional filters uniformly across the entire image in a sliding-window fashion. This spatial invariance is highly suboptimal. Over-exposed regions contain zero detail and zero variance; to figure out what information was lost, a network needs to look at the surrounding context of well-exposed pixels. Treating detail-less saturated regions the same as well-exposed texture regions limits the reconstruction quality of existing state-of-the-art models.

Methods

The authors address this limitation by splitting the problem into two specialized, interacting networks:

  1. Hierarchical Synthesis Network (HiSN): Instead of mapping LDR to HDR in one complex step, HiSN mirrors the physical camera degradation process in reverse. As shown in the pipeline diagram below, it first reconstructs a dim component ($H_1 \in [0,1]$) to correct for CRF distortions and quantization artifacts. It then hierarchically estimates a bright component ($H_2 \in (1, +\infty)$) to recover the clipped highlights. The final HDR image is simply the sum of the two: $H = H_1 + H_2$.
Fig. 1: LDR imaging pipeline. Firstly, an HDR image would be clipped to the range of [0, 1], resulting in the missing contents in the over-exposed regions. Secondly, non-linear mapping with a camera response function would transfer a linear irradiance to a non-linear brightness. Thirdly, the recorded pixels are quantized to 8-bites, leading to the visual artifacts mainly in the under-exposed regions.
  1. Lightness Adaptive Modulation Network (LAMN): To break the spatial invariance of standard convolutions, LAMN uses a lightness mask ($M$) to identify saturated pixels. It dynamically computes pixel-wise scaling ($\gamma$) and bias ($\beta$) parameters to modulate the intermediate feature maps ($x_i$) of HiSN:

$$x'_i = x_i \cdot (1 + \gamma_i) + \beta_i$$

This architectural choice allows the network to adaptively alter its feature processing depending on local brightness, effectively forcing the network to pull contextual information from the boundaries of blown-out zones.

Fig. 2: An overview of HiSN and LAMN. Givn LDR inputs L, HiSN is responsible for synthesizing the dim part H1 first, then estimates the bright part H2 with the modulation of LAMN, which utilizes the mask M to adaptively and discriminately modulate the activation maps xi in HiSN. k3s1p1d1 denotes a convolutional layer with kernel size 3, stride 1, padding 1 and dilation 1. The same applies to k3s1p2d2, k3s2p1d1 and k4s1p0d1. ReLU is the non-linear layer, and Downsample is the average pooling layer. m and n is empirically taken as 5 and 6, respectively.

Datasets

  • HDR-SYNTH: A dataset of 502 HDR images used for training. The authors synthetically generated corresponding LDR images by applying random exposure times, 171 different camera response curves from the DoRF dataset, Poisson-Gaussian noise, and JPEG compression artifacts.
  • HDR-REAL & RAISE: Two independent datasets used exclusively for evaluation to demonstrate how well the model generalizes to real-world, non-synthetic camera exposures.

Key Insights and Ideas

  • Contextual Infilling: Saturated pixels are completely uniform (all values equal 1.0). Because there is no internal data left to recover, the network must rely on nearby pixels ($P_a$) rather than distant pixels ($P_b$). LAMN explicitly teaches the network to recognize these boundaries and use surrounding textures to infer the missing highlight details.
Fig. 3: An example to show the motivation of LAMN. (a) shows a LDR image with limited dynamic range. The lamp region marked by the red circle suffers from sensor saturation, resulting in the saturated pixels Ps. Pa and Pb are the pixels around and far away from Ps, respectively. The lamp has determined the irradiance intensity, thus deciding the recorded pixel values of Ps and Pa. However, Pb is hardly affected by the lamp, as Pb is far away from the lamp. (b) shows the mask of (a), which is obtained via (3). It is clearly seen that the mask distinguishes Ps and Pa from Pb.
  • Physically-Motivated Decomposition: Breaking the network into a linearization/quantization step ($H_1$) and a highlight expansion step ($H_2$) makes the optimization landscape significantly easier for the network to navigate compared to direct LDR-to-HDR mapping.

Key Results

The proposed method achieved state-of-the-art performance across multiple standard metrics, including HDR-VDP-2.2, PU-PSNR, and PU-SSIM.

  • Quantitative Boost: On the real-world RAISE dataset, the model outperformed the previous best method (SingleHDR) by a substantial 3.95 dB in PU-PSNR and improved the HDR-VDP score by 0.91.
  • Qualitative Improvement: Visually, the network successfully reconstructs complex structures inside over-exposed regions—such as the distinct shapes of light bulbs and light fixtures—where competing methods produce blurry or flat artifacts.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{liu2021lightness,
  author = {Kanglin Liu and Gaofeng Cao and Jiang Duan and Guoping Qiu},
  title = {{Lightness Modulated Deep Inverse Tone Mapping}},
  year = {2021},
  eprint = {2107.07907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.07907},
}
Figure