Abstract
Color constancy is a fundamental challenge in computer vision, requiring the estimation of an unknown light source to recover true surface colors. This paper presents a novel, highly efficient approach based on the detection of "grey pixels"—nearly neutral surfaces within a scene. By leveraging a local contrast measure in logarithmic color space, the proposed method identifies these pixels without complex learning. Experimental results across multiple benchmarks demonstrate that using a tiny fraction of the most neutral pixels can outperform state-of-the-art statistical and learning-based models in both accuracy and speed.
Introduction
When an image is captured, the recorded colors are a product of both the surface reflectance and the spectral distribution of the illuminant. For a computer to achieve color constancy, it must disentangle these two components. Traditional methods often rely on global statistics, such as the Grey World hypothesis (assuming the average scene color is grey) or the Grey Edge hypothesis (assuming the average edge is grey). However, these assumptions frequently fail in real-world scenes dominated by specific colors.
This research addresses the problem by identifying physically achromatic (grey) pixels that serve as reliable anchors for illuminant estimation. Unlike previous methods that require large training sets, this approach is physically grounded and computationally lightweight.
The Grey Pixel Framework
The core of the proposed method is the Grey Index (GI), a metric used to identify pixels that are likely to be physically grey. The process involves several key steps:
- Logarithmic Transformation: The image is first converted to a logarithmic color space. In this domain, the effect of the illuminant becomes an additive shift, which can be isolated through local differences.
- Illuminant-Invariant Measure (IIM): The authors calculate the local contrast (standard deviation) within small patches (e.g., $3 \times 3$). This measure is theoretically independent of the light source's color.
- Grey Index Calculation: A pixel is considered "grey" if its local contrast is consistent across the Red, Green, and Blue channels. The Grey Index quantifies this consistency.
- Selection and Estimation: After filtering out noise and dark regions, the algorithm selects the top $n\%$ of pixels with the lowest Grey Index. The illuminant is then estimated based on the colors of these selected pixels.
For complex scenes with multiple light sources, the framework extends to use K-means clustering on the detected grey pixels, allowing for localized illuminant estimation.
Key Insights: The Ubiquity of Grey Pixels
A central finding of this work is that grey pixels are remarkably common in natural scenes. Statistical analysis of thousands of images from diverse datasets (SFU Indoor, Color Checker, SFU Grey Ball, Judd, and ASD) confirms that over 95% of images contain detectable grey pixels.
This validation supports the "Grey Pixel" hypothesis as a more robust alternative to the "Grey World" assumption. By focusing on the distribution of contrast rather than mean color, the method is less susceptible to being "fooled" by large, single-colored objects.
Results and Performance
The method was evaluated on four major benchmarks, showing significant improvements over traditional baselines:
- Accuracy: On the Color Checker dataset, the
GP(edge)variant achieved a median angular error of 3.1°, significantly better than the Grey World baseline of 6.3°. - Efficiency: The algorithm is exceptionally fast, processing high-resolution images in approximately 0.88 to 2.33 seconds using unoptimized MATLAB code. This efficiency makes it a prime candidate for integration into camera hardware.
- Robustness: The multi-illuminant extension reduced median error by up to 40% on laboratory images compared to previous state-of-the-art methods.
Conclusion and Future Work
The Grey Pixel framework demonstrates that "less is more" in color constancy. By identifying and using only the most reliable 0.01% of pixels, the method achieves high accuracy with minimal computational overhead. While the method performs best on linear images, future work will focus on improving robustness for non-linear, in-camera processed images and handling rare scenes that are truly devoid of neutral surfaces.
Summary updated