This paper, published by researchers at the University of Milano-Bicocca and the University of Pavia, presents a robust framework for color constancy—the computer vision task of estimating and removing the color tint caused by a scene's illumination. While most classical algorithms assume a single, uniform light source, this work leverages Convolutional Neural Networks (CNNs) to handle both single and multiple illuminants in RAW images.
TL;DR
The authors propose a three-stage CNN-based framework that produces local illuminant estimates across an image, detects whether multiple light sources are present, and uses a non-linear regressor to aggregate these into a highly accurate global estimate when necessary. It achieves state-of-the-art results on standard benchmarks, notably reducing median angular error to 1.44° on the Gehler-Shi dataset.
What Problem Does This Paper Address?
The "observed" color of an object is a product of its actual surface reflectance and the light shining on it. To achieve color constancy, a system must estimate the color of the light source (the illuminant) and "undo" its effect.
This is an under-determined problem because an infinite combination of light colors and surface colors can result in the same observed RGB values. Most existing methods simplify this by assuming the lighting is uniform across the entire scene. However, real-world scenes are often complex, featuring multiple light sources (e.g., warm indoor lamps mixed with cool daylight from a window). This paper tackles the challenge of creating a general-purpose method that performs well under both simple and complex lighting conditions.
Methods
The proposed approach follows a modular three-stage pipeline:
- Local Illuminant Estimation: The image is subdivided into non-overlapping 32x32 patches. A specially designed CNN processes these patches to produce a local estimate for each.
-
Novelty: Unlike standard vision CNNs, this architecture uses 1x1 convolutional filters. This choice reflects the insight that color constancy depends more on the distribution of colors than on complex spatial features like edges or shapes.
Fig. 2. The architecture of the CNN that produces the local estimates. -
Multiple Illuminant Detection: The system must decide if the scene has one or multiple light sources. It projects all local estimates onto a 2D chromaticity plane and uses Kernel Density Estimation (KDE) to find peaks. If the angular distance between major peaks exceeds 3°, the scene is flagged as having multiple illuminants.
-
Local-to-Global Aggregation: If only one illuminant is detected, the local estimates are pooled. Rather than using a simple average or median, the authors use a Support Vector Regressor (SVR) with a Radial Basis Function (RBF) kernel. This regressor takes statistics of the local estimates (mean, median, and standard deviation across different image regions) and maps them to a final global estimate.
Fig. 3. The architecture of our local-to-global regressor.
The overall flow of the system during training and testing is summarized in Figure 1: System Scheme
Datasets
The authors evaluated their method on a wide variety of datasets to ensure robustness:
- Single Illuminant: The standard Gehler-Shi (568 images) and NUS (1853 images across 9 different cameras) datasets.
- Multiple Illuminant: The Milan Portrait dataset (197 images with multiple color targets) and the Beigpour et al. dataset (laboratory and real-world multi-light scenes).
- Synthetic: A "Relighted Gehler-Shi" dataset created by the authors, where images were synthetically relighted with two to four random illuminants to provide a large-scale benchmark for non-uniform lighting.
Key Insights and Ideas
- Spatial Info is Secondary: The success of 1x1 convolutions and large 8x8 pooling layers suggests that for color constancy, the global "color recipe" of a patch is more informative than the specific arrangement of pixels.
- Shallow is Sufficient: The authors found that deepening the network actually decreased performance. This is likely because the available datasets for color constancy are relatively small (hundreds to a few thousand images), making deep models prone to overfitting.
- Learned Aggregation Wins: Moving from a simple median operator to a learned SVR-based regressor for global estimation provided a significant boost in accuracy, pushing the median error on Gehler-Shi down by nearly 1 degree.
Key Results
The method set new performance bars across the board:
- Gehler-Shi Dataset: Achieved a median angular error of 1.44°, outperforming the previous state-of-the-art (1.65°).
- NUS Dataset: The method consistently outperformed all competitors across all nine camera types included in the dataset.
- Multi-Illuminant Performance: On the synthetic multi-light dataset, the proposed method achieved a median error of 2.96°, whereas the next best general-purpose method (Multiple Light Sources + White Patch) trailed at 5.92°.
Qualitative results in Figure 4 demonstrate how the KDE identifies multiple peaks for complex scenes: Qualitative Results
Limitations and Future Work
- Semantic Context: While the method is general-purpose, it is occasionally outperformed by specialized algorithms, such as those designed specifically for faces. The authors suggest that incorporating semantic information (e.g., identifying sky, skin, or foliage) could further refine estimates.
- End-to-End Integration: Currently, the three stages (local estimation, detection, and aggregation) are separate modules. The authors aim to merge these into a single, unified end-to-end trainable model in the future.
- Data Scarcity: The field still lacks massive, diverse datasets for multiple illuminant estimation, which limits the potential of even deeper architectures.
Summary updated