Physics-Grounded Attached Shadow Detection Using Approximate 3D Geometry and Light Direction
Shilin Hu, Jingyi Xu, Sagnik Das, Dimitris Samaras, Hieu Le
TL;DR
This work addresses the lack of attached-shadow detection by introducing a geometry-informed, dual-module framework that jointly detects cast and attached shadows and estimates light direction from a single image with normals. It leverages a closed-loop refinement where a geometry-derived partial attached-shadow map informs shadow detection and, conversely, shadow predictions refine light estimation. A new dataset with per-pixel cast and attached masks, normals, and heuristic light directions enables rigorous evaluation and training. Experimental results demonstrate significant improvements in attached-shadow detection (BER reduction of at least 33% relative to prior methods) while preserving strong cast-shadow performance. The approach highlights the value of integrating surface geometry and illumination cues for more accurate shadow understanding and scene reasoning.
Abstract
Attached shadows occur on the surface of the occluder where light cannot reach because of self-occlusion. They are crucial for defining the three-dimensional structure of objects and enhancing scene understanding. Yet existing shadow detection methods mainly target cast shadows, and there are no dedicated datasets or models for detecting attached shadows. To address this gap, we introduce a framework that jointly detects cast and attached shadows by reasoning about their mutual relationship with scene illumination and geometry. Our system consists of a shadow detection module that predicts both shadow types separately, and a light estimation module that infers the light direction from the detected shadows. The estimated light direction, combined with surface normals, allows us to derive a geometry-consistent partial map that identifies regions likely to be self-occluded. This partial map is then fed back to refine shadow predictions, forming a closed-loop reasoning process that iteratively improves both shadow segmentation and light estimation. In order to train our method, we have constructed a dataset of 1,458 images with separate annotations for cast and attached shadows, enabling training and quantitative evaluation of both. Experimental results demonstrate that this iterative geometry-illumination reasoning substantially improves the detection of attached shadows, with at least 33% BER reduction, while maintaining strong full and cast shadow performance.
