Learning to Separate Multiple Illuminants in a Single Image

Zhuo Hui, Ayan Chakrabarti, Kalyan Sunkavalli, Aswin C. Sankaranarayanan

Introduction

Real-world lighting is rarely simple. An outdoor scene is typically illuminated by both the direct, warm light of the sun and the ambient, cool light of the sky. Similarly, indoor environments often feature a mix of artificial bulbs and natural light from windows. These multiple illuminants create complex color casts and overlapping shadows that are difficult to disentangle.

Separating these effects from a single photograph is a classic "ill-posed" problem in computer vision. Traditionally, solving this required multiple images (e.g., flash/no-flash pairs) or extensive manual annotation. This paper presents a deep learning framework capable of performing this separation from a single image by leveraging physics-based constraints.

Physics-Guided Architecture

The core innovation of this work is the rejection of "black-box" neural networks in favor of an architecture that mirrors the physical process of image formation. The authors propose a cascaded system of three sub-networks:

  1. ChromNet: Estimates the reflectance chromaticity, which represents the intrinsic color of surfaces independent of lighting.
  2. ShadingNet: Uses the original image and the reflectance estimate to predict illuminant shadings, determining how much of each light source reaches each pixel.
  3. SeparateNet: Refines these intermediate estimates to produce the final two output images, each representing the scene under a single light source.
The proposed cascaded architecture utilizes physics-based intermediate steps (reflectance and shading) to guide the separation process.

By forcing the network to produce physically meaningful intermediate outputs, the model learns the complex relationships between light, geometry, and surface color more effectively than standard end-to-end architectures like U-Nets.

Training and Datasets

To train a model for such a complex task, the authors utilized a combination of synthetic and augmented real-world data:

  • CGIntrinsics: Over 20,000 synthetic scenes provided ground truth for reflectance and shading.
  • Augmented Flash/No-Flash: The authors transformed 2,775 real-world image pairs into a large-scale training set of ~29,000 images by mathematically re-combining flash and ambient components to simulate dual-illuminant scenes.

Key Results

The proposed method significantly outperforms existing single-image benchmarks. On synthetic tests, the model achieved an $\ell_1$ error of 0.0207, compared to 0.0679 for standard networks.

An example of a separated illuminant component, showing the scene as if it were lit primarily by the warm direct sunlight.

Qualitatively, the system excels at separating sun and sky components in outdoor photography. It can isolate the yellow-white cast of direct sunlight from the blue ambient light of the sky, allowing for realistic relighting and shadow manipulation. Remarkably, this single-image approach achieves results comparable to state-of-the-art methods that require two input images.

Limitations and Future Work

While powerful, the model currently assumes exactly two illuminants and works best on Lambertian (matte) surfaces. Highly specular or metallic objects may still pose challenges, as their reflections do not follow simple shading rules. Additionally, because the pipeline is cascaded, errors in the initial reflectance estimation (ChromNet) can propagate to the final output. Future research may focus on expanding the model to handle more complex environments with three or more distinct light sources.

Summary updated

BibTeX
@inproceedings{hui2019learning,
  author = {Zhuo Hui and Ayan Chakrabarti and Kalyan Sunkavalli and Aswin C. Sankaranarayanan},
  title = {{Learning to Separate Multiple Illuminants in a Single Image}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00390},
}
Figure