Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Direction-aware Spatial Context Features for Shadow Detection

About

Shadow detection is a fundamental and challenging task, since it requires an understanding of global image semantics and there are various backgrounds around shadows. This paper presents a novel network for shadow detection by analyzing image context in a direction-aware manner. To achieve this, we first formulate the direction-aware attention mechanism in a spatial recurrent neural network (RNN) by introducing attention weights when aggregating spatial context features in the RNN. By learning these weights through training, we can recover direction-aware spatial context (DSC) for detecting shadows. This design is developed into the DSC module and embedded in a CNN to learn DSC features at different levels. Moreover, a weighted cross entropy loss is designed to make the training more effective. We employ two common shadow detection benchmark datasets and perform various experiments to evaluate our network. Experimental results show that our network outperforms state-of-the-art methods and achieves 97% accuracy and 38% reduction on balance error rate.

Xiaowei Hu, Lei Zhu, Chi-Wing Fu, Jing Qin, Pheng-Ann Heng• 2017

Related benchmarks

TaskDatasetResultRank
Shadow DetectionSBU
BER5.59
42
Camouflaged Object SegmentationCAMO 250 images (test)
Mean Absolute Error (MAE)0.105
40
Shadow DetectionSBU (test)
Balanced Error Rate (BER)5.59
29
Shadow RemovalSRD (test)
RMSE4.86
25
Mirror SegmentationMSD (test)
IoU69.71
25
Camouflaged Object SegmentationCOD10K (test)
Mean Absolute Error (M)0.052
24
Shadow DetectionISTD
BER3.42
23
Camouflaged Object SegmentationCHAMELEON 76 images (test)
Sa0.85
19
Shadow DetectionViSha (test)
BER17.91
18
Shadow DetectionISTD (test)
BER8.24
16
Showing 10 of 15 rows

Other info

Code

Follow for update