Kernel Density Estimation for Robust Gray Patch White Balancing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional automatic white balancing techniques, such as the Gray World method, often fail to accurately normalize images due to over-biasing from dominant colors or large surfaces, leading to inaccurate hue representation and distortion, especially in scenes with human skin or blue skies, and can result in unrealistic color corrections.

Innovation Solution

A method for robust detection of gray patches in images, using kernel density estimation to identify candidate gray points, refine estimates by compensating for outliers, and dynamically adjust thresholds for color preference and tuning, ultimately converting the refined gray point into white balance gains for improved color temperature control.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the Gray World method averages all pixel colors to estimate illuminant color, then the method is simple to implement and computationally efficient, but it produces poor white balance performance in scenes with dominant colors or large colored surfaces

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidwhite balance accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent applies local quality by assigning different weights to different regions of the image based on their likelihood of containing gray surfaces. Instead of treating all pixels equally, the algorithm identifies and weights specific local regions (e.g., shadow regions, non-saturated areas) more heavily in the illuminant estimation process, thereby improving accuracy in scenes with dominant colors while maintaining computational efficiency.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the parameter of pixel weighting from uniform (Gray World) to adaptive based on local image characteristics. By introducing weight factors that vary across different image regions based on saturation, luminance, and other local properties, the method transforms the simple average into a weighted average that adapts to local conditions, resolving the contradiction between simplicity and accuracy.

Inventive Principle:
Principle #35Parameter changes

2Ease of operation

If the Gray World method uses the average color of the entire image, then the implementation is straightforward, but it causes gray objects to be rendered inaccurately and produces distorted coloring in certain scenes

Engineering Contradiction:
Improveimplementation simplicityVSAvoidcolor accuracy
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent implements local quality by differentiating between different image regions and applying appropriate weighting. It identifies regions likely to contain gray surfaces (such as shadow regions and non-saturated areas) and gives them higher weights, while reducing the influence of colored regions. This localized approach maintains implementation simplicity while significantly improving color accuracy and reliability.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent introduces intermediary weight factors that mediate between the simple average calculation and the final illuminant estimate. These weight factors act as intermediaries that filter out problematic regions (saturated colors, highlights, shadows) while preserving the computational efficiency of the average-based approach, thereby maintaining ease of operation while improving reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If conventional white balancing methods apply strong bias correction to counteract dominant colors, then they can restore some color balance, but they cause over-graying of skin tones and unintended hue shifts in other objects

Engineering Contradiction:
Improvecolor normalization accuracyVSAvoidunintended hue distortion
Core Design Contradiction:
Measurement precisionVSObject-affected harmful factors

Solution Approach 1:

The patent applies local quality by treating different image regions differently based on their characteristics. Instead of applying a uniform bias correction, it identifies skin-tone regions and other sensitive areas and applies reduced or modified correction in those regions, while applying stronger correction in regions with dominant colors. This prevents over-graying of skin tones and unintended hue shifts while still achieving color normalization in problematic areas.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent applies preliminary anti-action by preemptively identifying regions that would be adversely affected by strong bias correction (such as skin tones and naturally colored objects) and adjusting the correction strategy before applying it. By pre-weighting or pre-identifying sensitive regions, the method prevents harmful over-correction while maintaining effective normalization in regions where it is needed.

Inventive Principle:
Principle #9Preliminary anti-action

Data Source

PatentUS9307213B2Robust selection and weighting for gray patch automatic white balancing
Publication Date: 2016.04.05 NVIDIA CORP
  • US9307213B2 patent drawing
  • US9307213B2 patent drawing
  • US9307213B2 patent drawing

AI summary

Embodiments of the present invention are directed to methods and systems for robust weighting of gray patches in automatic white balancing in an image-capture device by utilizing kernel density estimation techniques with dynamically variable bandwidth to determine the probability density of samples to create an initial estimate, then verifying the initial gray point estimate to account for outliers. In one embodiment, given a set of image data, an initial gray point estimate in a color space is determined for the set of image data. The initial estimate is then refined by weighting the sub-population with the greatest probability of being gray. A final evaluation that includes a further comparison to pre-programmed constraints determines a final estimate, which can still be further tuned according to user preferences by adjusting color biases. The resulting final gray point estimate provides greater stability, and greatly improved accuracy over traditional techniques and solutions.