Under the Shadow: Exploiting Opacity Variation for Fine-grained Shadow Detection

Xidian University, China

Given an input image, our goal is to predict a continuous opacity mask representing the shadow region,the continuous shadow opacity mask is useful in various downstream scene understanding applications.

Abstract

Shadow characteristics are of great importance for scene understanding. Existing works mainly consider shadow regions as binary masks, often leading to imprecise detection results and suboptimal performance for scene understanding. We demonstrate that such an assumption oversimplifies light-object interactions in the scene, as the scene details under either hard or soft shadows remain visible to a certain degree. Based on this insight, we aim to reformulate the shadow detection paradigm from the opacity perspective, and introduce a new fine-grained shadow detection method. In particular, given an input image, we first propose a shadow opacity augmentation module to generate realistic images with varied shadow opacities. We then introduce a shadow feature separation module to learn the shadow position and opacity representations separately, followed by an opacity mask prediction module that fuses these representations and predicts fine-grained shadow detection results. In addition, we construct a new dataset with opacity-annotated shadow masks across varied scenarios. Extensive experiments demonstrate that our method outperforms the baselines qualitatively and quantitatively, enhancing a wide range of applications, including shadow removal, shadow editing, and 3D reconstruction.

The FSD dataset contains 2,653 scenes with different objects, scenes, and light source properties. Each scene contains varied fine-grained shadow characteristics.

We propose a new shadow detection method by explicitly capturing shadow position and opacity characteristics.

Video Presentation

BibTeX

@inproceedings{Qiao2025Under,
      title={Under the Shadow: Exploiting Opacity Variation for Fine-grained Shadow Detection},
      author={Qiao, Xiaotian and Xu, Ke  and Yang, Xianglong and Dong, Ruijie and Xia, Xiaofang and Cui, Jiangtao },
      booktitle={Neural Information Processing Systems},
      year={2025},
    }