I-028Shadow Consistency Analysis
Analyzes shadow geometry, direction, and softness for physical plausibility. AI models struggle to maintain consistent shadow casting from a single light source.
Algorithm / Model
Shadow Edge Detection + Vanishing Point Analysis
How it works
Detects shadow edges and estimates shadow direction vectors using gradient analysis. Checks that all shadows in the scene are consistent with a single (or known) light source configuration. AI images frequently produce shadows cast in contradictory directions or with inconsistent softness/hardness.
Technical Parameters
Shadow detection: chromaticity-based segmentation, Direction estimation: Radon transform on shadow boundaries, Consistency: pairwise angular comparison, Softness: penumbra width analysis
Accuracy & Reliability
Moderate - 68-78% on images with clearly visible shadows
Strengths
• Physics-based approach with strong theoretical basis
• Effective for outdoor scenes with clear shadows
• Complements lighting analysis methods
• Can detect both AI and manual manipulation
• Effective for outdoor scenes with clear shadows
• Complements lighting analysis methods
• Can detect both AI and manual manipulation
Limitations
• Requires clearly visible shadow regions
• Overcast/indoor scenes with soft lighting are difficult
• Multiple light sources complicate analysis
• Transparent or translucent objects create complex shadows
• Overcast/indoor scenes with soft lighting are difficult
• Multiple light sources complicate analysis
• Transparent or translucent objects create complex shadows
Use Case
Verifying shadow consistency to detect AI generation or image compositing