I-190Color Cast Analysis
Analyzes color cast patterns across image regions to detect inconsistent white balance. In single-capture photographs, the color cast from the ambient illuminant is globally consistent. Spliced images and AI-generated composites often contain regions with incompatible color temperatures, revealing manipulation.
Algorithm / Model
Illuminant Color Map Estimation + Regional Consistency Verification
How it works
Every light source has a characteristic spectral power distribution that imparts a 'color cast' on the scene. Cameras apply white balance correction to neutralize this cast, but the correction is global — all regions receive the same adjustment. If an image contains spliced elements from a differently-lit scene, those regions will have a different residual color cast.The detector operates by: (1) Gray World Estimation — for each image block (typically 64×64), estimates the local illuminant color using the gray world assumption: E[R] ≈ E[G] ≈ E[B] under neutral illumination. The per-block illuminant estimate is computed as (μ_R/μ_G, μ_B/μ_G). (2) Physics-Based Refinement — refines the illuminant map using dichromatic reflection model constraints, separating diffuse and specular reflection components to improve illuminant estimation accuracy. (3) Consistency Map Generation — creates a spatial map of illuminant color temperature across the image. In authentic single-capture photographs, this map shows smooth, physically motivated variations (e.g., shadows are cooler than highlights). Spliced regions produce sharp discontinuities. (4) Statistical Test — applies a Kolmogorov-Smirnov test between the illuminant distributions of different image regions to quantify inconsistency, producing the final anomaly score.AI-generated images often show either perfectly uniform color temperature (unnaturally 'clean' white balance) or random regional variations that don't follow physically consistent lighting geometry.
Technical Parameters
Block size: 64×64 pixels for local illuminant estimation
Illuminant model: gray world + dichromatic reflection
Color temperature range: 2000K–12000K
Consistency metric: Kolmogorov-Smirnov test between regional illuminant distributions
Significance threshold: p < 0.01 for inconsistency detection
Illuminant model: gray world + dichromatic reflection
Color temperature range: 2000K–12000K
Consistency metric: Kolmogorov-Smirnov test between regional illuminant distributions
Significance threshold: p < 0.01 for inconsistency detection
Accuracy & Reliability
Moderate to High — 72-85% accuracy. Strongest on outdoor scenes with clear lighting; weaker on studio images with multiple controlled light sources.
Strengths
• Based on fundamental physics of light and surface interaction
• Spatially interpretable — inconsistency regions are directly mappable on the image
• Works on any image with sufficient color variation regardless of content
• Complementary to lighting direction analysis (different physical principle, same forensic goal)
• Spatially interpretable — inconsistency regions are directly mappable on the image
• Works on any image with sufficient color variation regardless of content
• Complementary to lighting direction analysis (different physical principle, same forensic goal)
Limitations
• Mixed lighting scenes (indoor+outdoor, multiple lamps) naturally produce varying color casts, causing false positives
• Highly saturated or monochromatic regions lack sufficient color information for reliable illuminant estimation
• AI generators trained on diverse lighting datasets are increasingly producing consistent color casts
• Post-capture white balance editing legitimately alters the color cast globally
• Highly saturated or monochromatic regions lack sufficient color information for reliable illuminant estimation
• AI generators trained on diverse lighting datasets are increasingly producing consistent color casts
• Post-capture white balance editing legitimately alters the color cast globally
Use Case
Detecting image splicing through illuminant color inconsistency, identifying AI-generated images with physically impossible lighting combinations, verifying that all elements in a photograph share the same color temperature, and forensic analysis of composite images claiming single-capture origin.