Abstract
Color constancy—the process of removing illumination effects to recover the true colors of a scene—is a fundamental challenge in computer vision, particularly in environments with multiple light sources. Traditional global white-balancing algorithms often fail in complex real-world scenarios where lighting varies spatially. This paper presents a pixel-wise color constancy (PWCC) approach that leverages a U-Net architecture integrated with Total Variation (TV) loss, bilateral filtering, and a novel label-smoothing technique. By enforcing spatial smoothness and accounting for noisy ground-truth data, the proposed method achieves state-of-the-art performance on the Large Scale Multi-Illuminant (LSMI) dataset, demonstrating significant improvements in both mean angular error and robustness in difficult cases.
Introduction
Most consumer digital cameras operate under the assumption of a "global" illuminant, applying a single correction factor to the entire image. However, real-world scenes are frequently illuminated by multiple sources with different spectral characteristics, such as a combination of warm indoor lighting and cool natural daylight. In these "multi-illuminant" scenarios, global methods result in unnatural color casts.
Existing multi-illuminant methods often suffer from two primary issues: a lack of spatial consistency, leading to "patchy" transitions between light sources, and sensitivity to noisy ground-truth labels. This research addresses these challenges by treating illumination estimation as a spatially dependent problem and introducing regularization techniques to ensure smooth, photorealistic transitions.
Proposed Method
The proposed system, Pixel-Wise Color Constancy (PWCC), utilizes a U-Net architecture to predict an illumination map at the pixel level. The model operates in the log-chrominance ($uv$) color space to decouple color information from luminance. Three key technical pillars support the framework:
1. Total Variation (TV) Loss
To align the model's predictions with the physical properties of light, which typically changes gradually across a scene, the authors incorporate a Total Variation (TV) loss term. This loss penalizes sharp, discontinuous changes in the predicted illumination between adjacent pixels, encouraging the model to produce spatially coherent illumination maps.
2. Bilateral Filtering
While TV loss ensures smoothness during training, the final output is refined using a bilateral filter. This edge-preserving smoothing technique reduces residual noise in the white-balanced image while maintaining the integrity of sharp object boundaries, preventing the "blurry" appearance often associated with standard smoothing filters.
3. Label Smoothing for Illumination
Ground-truth data in color constancy datasets is often imperfect because it typically fails to account for varying surface reflectivity. To prevent the model from overfitting to these noisy labels, the authors introduce a label-smoothing technique. By injecting random Gaussian noise into the training labels ($\alpha$ weights), the model is encouraged to generalize better and avoid overconfidence in potentially inaccurate ground-truth data.
Experimental Setup
The model was evaluated using a subset of the Large Scale Multi-Illuminant (LSMI) Dataset. The dataset consists of over 7,400 images, with this study focusing on 2,360 images captured via a Samsung Galaxy Note 20 Ultra under dual-light conditions. During preprocessing, calibration tools (color checkers) were masked to ensure the model learned features from the scene itself rather than relying on the presence of a reference tool.
Results
The PWCC model (specifically version v2) demonstrated superior performance compared to existing baselines.
- Accuracy: The method achieved a Mean Angular Error of 2.0, representing a 13% improvement over the previous state-of-the-art (LSMI U-Net, which recorded 2.31).
- Robustness: The model showed significant gains in the "Worst 25%" of cases, reducing the error from 4.24 to 3.8. This indicates that the smoothness priors and label-smoothing techniques are particularly effective for the most challenging lighting conditions.
- Qualitative Analysis: Visual inspections confirm that PWCC effectively removes stubborn color casts, such as greenish tints in mixed-lighting indoor environments, which baseline models often fail to correct.
Conclusion
By integrating spatial smoothness priors and acknowledging the inherent noise in illumination datasets, the PWCC framework provides a robust solution for multi-illuminant color constancy. The combination of TV loss and bilateral filtering ensures photorealistic results, while label smoothing enhances the model's ability to generalize. Future research will focus on explicitly incorporating surface reflectivity into the estimation model to further refine the accuracy of ground-truth modeling in complex scenes.
Summary updated