Abstract
Shadows are formed when light encounters obstacles, leading to areas of diminished illumination. In computer vision, shadow detection, removal, and generation are crucial for enhancing scene understanding, refining image quality, ensuring visual consistency in video editing, and improving virtual environments. This paper presents a comprehensive survey of shadow detection, removal, and generation in images and videos within the deep learning landscape over the past decade, covering tasks, deep models, datasets, and evaluation metrics. Our key contributions include a comprehensive survey of shadow analysis, standardization of experimental comparisons, exploration of the relationships among model size, speed, and performance, a cross-dataset generalization study, identification of open issues and future directions, and provision of publicly available resources to support further research.
Introduction
Shadows are more than just dark patches on the ground; they are complex physical phenomena that provide crucial cues about light sources, object geometry, and scene structure. While deep learning has revolutionized how computers handle shadows, the field has become increasingly fragmented. Researchers often use different datasets, resolutions, and evaluation metrics, making direct "apples-to-apples" comparisons nearly impossible. In this comprehensive survey and benchmark, Xiaowei Hu and colleagues provide a unified look at shadow analysis, re-training representative models under standardized conditions to reveal the true state of the art.
Taxonomy and Evolution of Shadow Analysis
The field has transitioned from early computer graphics and handcrafted features to sophisticated deep learning models. The authors categorize shadow analysis into four primary tasks: shadow detection, instance shadow detection, shadow removal, and shadow generation.
As illustrated in the timeline above, the deep learning era has evolved through several stages, starting with component learning (CNN-CRF hybrids) and progressing to single-task end-to-end detectors, multi-task frameworks, and recent adaptations of large vision models like SAM.
Methods and Architectures
The authors introduce a consistent taxonomy for the field, categorizing methods by architecture, supervision level, and learning paradigm.
The survey highlights the shift from early CNNs to modern Transformers and Diffusion models. It also distinguishes between fully supervised methods, which require expensive manual masks, and emerging semi-supervised or self-supervised approaches.
Datasets and Standardized Benchmarking
A significant contribution of this work is the standardization of evaluation. The authors re-trained representative models on a consistent platform (NVIDIA RTX 4090) using uniform resolutions (256x256 and 512x512). This process exposed significant inconsistencies in prior reports, often caused by varying input resolutions or dataset biases.
The paper reviews a vast array of datasets:
- Detection: SBU, SBU-Refine (a corrected version fixing noisy labels), and CUHK-Shadow.
- Video & Instance Detection: ViSha, CVSD, SOBA, and SOBA-VID.
- Removal: SRD, ISTD+, and specialized datasets like RDD (document) and UCB (facial).
Key Insights and Results
The authors argue that detection, removal, and generation form a "closed loop." Detection provides spatial support for removal, while the attenuation priors learned during removal can drive realistic synthesis. A key finding is that incorporating physical illumination priors—such as modeling the transition between the umbra (full shadow) and penumbra (soft edge)—is more effective than simply increasing network depth.
Benchmark results show:
- Detection: Modern models like SDDNet and DSDNet lead the field, though older reports often overestimated performance due to label noise.
- Removal: Early methods like DSC and ST-CGAN remain highly competitive. BMNet is particularly efficient, achieving strong results with only 0.58M parameters.
- Instance Shadow Detection: SSISv2 currently defines the state-of-the-art for associating multiple objects with their respective shadows in cluttered scenes.
Future Directions
The survey identifies several critical gaps for future research:
- Unified Frameworks: Moving toward "all-in-one" models that can detect, remove, and generate shadows simultaneously.
- 3D Awareness: Integrating 3D scene geometry (e.g., via NeRFs) to ensure shadows are physically consistent with object shapes.
- AIGC Authenticity: Using shadow consistency as a "litmus test" for detecting deepfakes or manipulated AI-generated content.
- Multimodal Integration: Leveraging large vision-language models to allow shadow manipulation via natural language prompts.
By providing corrected datasets and standardized evaluation tools, this paper serves as a new baseline for the community, ensuring that future progress is built on solid, comparable ground.
Summary updated