Cast and Attached Shadow Detection via Iterative Light and Geometry Reasoning

Shilin Hu1, Jingyi Xu1, Sagnik Das1, Dimitris Samaras1†, Hieu Le2†
1Stony Brook University | 2UNC Charlotte | †Equal Advising
  • Our paper has been accepted to ECCV 2026! πŸŽ‰
  • This project page is being actively updated. Stay tuned!

Motivation

Motivation figure about cast and attached shadow separation
Motivation comparison of datasets and shadow annotation coverage

Shadows are not all the same. Cast shadows describe spatial relationships between objects and surfaces, while attached shadows reveal local shape and orientation directly on object surfaces. Most existing methods still treat shadows as a single category or overlook attached shadows, which limits both physical understanding and downstream use. Our goal is to explicitly separate these two shadow types because they provide complementary information for geometry reasoning and shadow removal.

Abstract

Framework overview figure

Shadows encode rich information about scene geometry and illumination, yet existing methods either predict a unified shadow mask or overlook attached shadows entirely. We propose a framework for jointly detecting cast and attached shadows through explicit physical modeling of light direction and surface geometry. Our approach builds a closed feedback loop between shadow detection and light estimation: updated light estimates with surface normals produce partial attached shadow maps that guide detection, while improved shadow predictions sharpen light estimation. Experiments demonstrate that our physically grounded, iterative formulation outperforms prior methods, with at least a 33% reduction in attached BER, while maintaining strong full and cast performance.

Results

Quantitative Results

Quantitative comparison results

Quantitative comparison with state-of-the-art methods on our dataset. We report BER↓ and F1↑ for full, cast, and attached shadows. Methods fine-tuned on our training set are marked with †. Best results are in bold.

Qualitative Results

Qualitative comparison results

Qualitative comparison of our method with retrained BDRAR, FSDNet, FDRNet, and SILT on our dataset. Predicted masks are overlaid on the input image (green: attached, red: cast). Our physics-grounded iterative framework produces more accurate attached-shadow boundaries.

Cross-dataset Performance

We further test our model on video shadow datasets to examine cross-dataset generalization beyond our image-based benchmark. On SBU-TimeLapse, which mainly contains static scenes, and ViSha, which includes more dynamic scenes and motion, our method still produces meaningful cast and attached shadow separation without dataset-specific retraining.

Dataset

Dataset examples and annotations

We introduce a dataset of 1,458 images curated for cast and attached shadow detection. Each sample includes an RGB image, a relative depth map, raw light information, an object mask, and separate cast, attached, and undefined shadow annotations. Surface normals can be computed from the provided depth maps.

Download Dataset

This dataset is derived from WSRD, SOBA, and CUHK-Shadow and is provided for noncommercial academic research. The original source datasets retain their respective rights and terms: WSRD is under CC BY-NC-SA 4.0, CUHK-Shadow is under CC BY-NC-SA 3.0, and SOBA is distributed through its official public research release. Please cite accordingly when using this dataset.

Citation

@misc{hu2026castattachedshadowdetection,
      title={Cast and Attached Shadow Detection via Iterative Light and Geometry Reasoning},
      author={Shilin Hu and Jingyi Xu and Sagnik Das and Dimitris Samaras and Hieu Le},
      year={2026},
      eprint={2512.06179},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2512.06179},
}