Recurrent Color Constancy

Yanlin Qian, Ke Chen, Jarno Nikkanen, Joni-Kristian Kamarainen, Jiri Matas

Abstract

Color constancy, or automatic white balance (AWB), is the ability of a vision system to perceive the true color of objects regardless of the light source. While most algorithms treat images as isolated snapshots, real-world video provides a temporal context that can be leveraged for greater stability. We present RCC-Net, the first end-to-end recurrent network designed for temporal color constancy. By combining Convolutional LSTMs with a novel "Simulated Sequence" data augmentation technique, RCC-Net outperforms existing single-frame and temporal methods by 14–22%, enabling accurate, real-time color correction for video.

Introduction

Cameras often struggle to maintain color consistency when lighting changes dynamically, such as when a camera moves from indoor to outdoor settings or when light sources flicker. Traditional temporal color constancy methods often rely on the fragile assumption that illumination remains constant throughout a clip. RCC-Net addresses this by learning the temporal dynamics of lighting, allowing the system to "remember" how illumination has evolved to provide more stable and accurate corrections in real-time.

Methods

RCC-Net utilizes a dual-branch architecture to estimate the illumination of the final frame in a sequence:

  1. Temporal Branch: This branch processes a sequence of preceding frames (e.g., the last 5 frames). It uses a pre-trained VGG-19 network to extract deep visual features, which are then fed into a Convolutional LSTM. This allows the network to distinguish between changes in scene content and changes in the light source.
  2. Simulated Sequence (SS) Branch: To enforce spatial consistency, this branch generates a "fake" sequence by taking the current frame and creating a series of random, overlapping crops (simulating a zoom-in). Using an AlexNet backbone and its own LSTM, it learns that different objects in the same frame are likely under the same light source.
RCC-Net Architecture: The dual-branch system combines original temporal sequences (a-c) with simulated spatial crops (e-g) to estimate RGB illumination.

The outputs of both branches are merged into a regression network optimized using Angular Error as the loss function, directly targeting the standard metric for color accuracy.

Key Results and Discussion

Evaluated on the SFU Gray Ball Dataset, RCC-Net set a new state-of-the-art performance benchmark. On the non-linear version of the dataset, it achieved a median angular error of 2.9°, a significant improvement over the 3.2°–4.8° range of previous top-tier methods.

Qualitative comparison of RCC-Net against other methods and ground truth. RCC-Net consistently achieves lower angular errors across various lighting conditions.

Key insights from the study include:

  • Temporal Context: The LSTM's memory helps smooth out erratic predictions by considering preceding frames.
  • Spatial Consistency: The SS module acts as a powerful regularizer, forcing the network to recognize global illumination across diverse image patches.
  • Efficiency: Despite its complexity, the model is highly efficient, with inference taking less than 50ms on a standard GPU, making it viable for high-frame-rate live video.

Conclusion

RCC-Net demonstrates that recurrent architectures can significantly improve the stability and accuracy of automatic white balance in video. While the SFU Gray Ball dataset presents some ground-truth limitations, the 14–22% performance gain over previous methods highlights the potential of temporal learning. Future work may explore non-causal versions for post-production video editing where future frames are also available for context.

Summary updated

BibTeX
@inproceedings{qian2017recurrent,
  author = {Yanlin Qian and Ke Chen and Jarno Nikkanen and Joni-Kristian Kamarainen and Jiri Matas},
  title = {{Recurrent Color Constancy}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.582},
}
Figure