Skip to main content
QUICK REVIEW

[Paper Review] Semantic White Balance: Semantic Color Constancy Using Convolutional Neural Network

Mahmoud Afifi|arXiv (Cornell University)|Feb 1, 2018
Color Science and ApplicationsPhysics and Astronomy10 references14 citations
TL;DR

This paper proposes a semantic white balance method that leverages convolutional neural networks (CNNs) to improve color constancy by integrating semantic segmentation masks with RGB image data. By training a modified AlexNet to estimate illuminant color and gamma correction parameters using both spatial and semantic information, the approach reduces color correction error by over 40% compared to non-semantic baselines, demonstrating that semantic context significantly enhances illuminant estimation accuracy.

ABSTRACT

The goal of computational color constancy is to preserve the perceptive colors of objects under different lighting conditions by removing the effect of color casts caused by the scene's illumination. With the rapid development of deep learning based techniques, significant progress has been made in image semantic segmentation. In this work, we exploit the semantic information together with the color and spatial information of the input image in order to remove color casts. We train a convolutional neural network (CNN) model that learns to estimate the illuminant color and gamma correction parameters based on the semantic information of the given image. Experimental results show that feeding the CNN with the semantic information leads to a significant improvement in the results by reducing the error by more than 40%.

Motivation & Objective

  • To improve computational color constancy by incorporating semantic information into deep learning models.
  • To address the limitation of traditional color constancy methods that rely solely on color and spatial statistics.
  • To investigate whether semantic segmentation masks can enhance illuminant estimation accuracy in CNN-based white balance systems.
  • To evaluate the robustness of the method under imperfect or inaccurate semantic masks.
  • To demonstrate the effectiveness of joint learning of illuminant color and gamma correction using semantic-aware CNNs.

Proposed method

  • The method represents input images as 4D volumes combining RGB channels and a semantic mask, enabling the network to process both color and semantic content simultaneously.
  • A modified AlexNet architecture is used, with a 4D convolutional layer replacing the first layer to handle the 4D input tensor.
  • The fully connected layers are restructured into four new layers (fc6–fc9), followed by a regression head to predict four parameters: red, green, and blue illuminant components (r, g, b), and gamma correction (γ).
  • Image correction is performed using the equation: ŝ = (I × M)^(1/γ), where M is a diagonal matrix of inverse illuminant components.
  • The model is trained using synthetic data generated by applying random color casts (r, g, b ∈ [0.7, 1.3]) and gamma corrections (γ ∈ [0.85, 1.15]) to real sRGB images from the ADE20K dataset.
  • Data augmentation includes spatial transformations to enrich training data and improve generalization.

Experimental results

Research questions

  • RQ1Can integrating semantic segmentation masks into a CNN improve the accuracy of illuminant estimation for color constancy?
  • RQ2How does the inclusion of semantic context affect the performance of deep learning-based white balance models compared to those using only RGB and spatial features?
  • RQ3To what extent does model performance degrade when using inaccurate or noisy semantic masks?
  • RQ4Does joint estimation of illuminant color and gamma correction lead to better visual and quantitative results than separate or fixed-parameter correction?
  • RQ5Can a CNN trained on synthetic data with controlled color casts generalize effectively to real-world sRGB images?

Key findings

  • The proposed method reduces the average root mean square error (RMSE) by more than 40% compared to a baseline CNN without semantic input, achieving an RMSE of 31.1355 vs. 53.8815 on the full ADE20K test set.
  • When gamma correction is not required (γ = 1), the error reduction is even more pronounced, dropping from 51.8160 to 20.1450, indicating strong performance on clean cases.
  • Qualitative results show that the method produces visually superior corrections compared to grey-world, Adobe Photoshop auto-correct, Lightroom, and standard AlexNet baselines.
  • The model maintains strong performance even when fed with inaccurate semantic masks, as shown in Figure 6, where incorrect masks lead to degraded but still better results than non-semantic baselines.
  • The method outperforms traditional algorithms such as grey-world, white patch, and PCA-based illuminant estimation on both NUS and Gehler datasets, as demonstrated in Figure 4.
  • The use of semantic masks enables the network to leverage prior knowledge (e.g., sky should be blue), improving robustness and accuracy in illuminant estimation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.