I-227Chroma Key Residual Detection

Pixel Analysisimage2015

Detects residual chroma key spill and compositing artifacts from green/blue screen keying processes. Even professional keying leaves traces of the key color in semi-transparent regions like hair, glass, and motion-blurred edges — revealing that an image was composited rather than captured in a single exposure.

Chroma Key Spill Analysis + Matte Edge Profiling + Background Plate Discontinuity
Chroma keying (green/blue screen compositing) works by replacing pixels matching a specific hue range with a background plate. Even professional keying software leaves characteristic residual artifacts that this detector identifies:1. Color Spill Detection — The key color (typically green at hue ~120° or blue at ~240°) contaminates subject edges and semi-transparent areas (hair, glass, fine detail) through light reflection and diffraction. The detector scans for anomalous green/blue channel bias in edge regions of foreground subjects, quantified as the spill ratio: S = G / max(R, B) for green screens. Values significantly above the natural skin/hair spill baseline indicate keying artifacts.2. Matte Edge Analysis — Keying algorithms produce binary or soft alpha mattes. The transition zones between foreground (α=1) and background (α=0) in keyed composites have characteristic sigmoid profiles with specific spatial frequencies that differ from natural depth-of-field blur. The detector analyzes the frequency spectrum of foreground object boundaries.3. Background Plate Discontinuity — Where the key was replaced, the new background often has different noise characteristics, compression levels, and lighting direction than the foreground subject. The detector computes local noise variance ratios between the subject region and the immediately surrounding background.4. Semi-Transparent Region Artifacts — Hair strands, glass, and motion-blurred edges are the hardest elements to key cleanly. The detector specifically examines these fine-detail regions for color channel inconsistencies and unnatural alpha transitions.
Key color detection: Hue analysis (green: 80°-160°, blue: 200°-260°)
Spill ratio threshold: S > 1.3 (green) or B/max(R,G) > 1.3 (blue)

Matte edge analysis: gradient profile perpendicular to foreground boundary

Noise comparison: local variance ratio between foreground and background

Minimum subject area: 5% of total image area
Moderate — 65-78% accuracy. Strong on amateur composites with visible spill; professional-grade keying with advanced despill and edge refinement is significantly harder to detect.
• Color spill is an extremely persistent artifact — even professional despill algorithms leave traces in fine hair detail
• The matte edge sigmoid profile is a well-characterized and distinctive compositing signature

• Can often determine the original key color (green vs. blue) from residual spill patterns

• Semi-transparent region analysis catches artifacts that pixel-level methods miss
• Professional-grade keying software with advanced despill (Primatte, Keylight) can reduce spill below detection threshold
• AI-generated composites using learned matting (not traditional chroma keying) leave different artifacts

• Natural images with genuinely green/blue backgrounds can trigger false positives

• Heavily compressed images lose the subtle color channel information needed for spill detection
Detecting composite images created using green/blue screen keying, forensic analysis of product photography and portrait composites, identifying AI-generated images that incorporate chroma-keyed elements, and verifying the authenticity of images claiming to show a subject in a specific location.