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

Direction-aware Spatial Context Features for Shadow Detection and Removal

About

Shadow detection and shadow removal are fundamental and challenging tasks, requiring an understanding of the global image semantics. This paper presents a novel deep neural network design for shadow detection and removal by analyzing the spatial 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 and removing shadows. This design is developed into the DSC module and embedded in a convolutional neural network (CNN) to learn the DSC features at different levels. Moreover, we design a weighted cross entropy loss to make effective the training for shadow detection and further adopt the network for shadow removal by using a Euclidean loss function and formulating a color transfer function to address the color and luminosity inconsistencies in the training pairs. We employed two shadow detection benchmark datasets and two shadow removal benchmark datasets, and performed various experiments to evaluate our method. Experimental results show that our method performs favorably against the state-of-the-art methods for both shadow detection and shadow removal.

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

Related benchmarks

TaskDatasetResultRank
Shadow RemovalISTD (test)
RMSE (All)5.59
65
Shadow DetectionSBU
BER5.59
42
Shadow DetectionSBU (test)
Balanced Error Rate (BER)5.59
29
Shadow RemovalSRD (test)
RMSE5.71
25
Shadow RemovalISTD
PSNR29
24
Shadow DetectionISTD
BER3.42
23
Shadow RemovalISTD+
PSNR25.66
22
Shadow RemovalISTD original (test)
RMSE (Shadow)8.72
20
Shadow RemovalISTD 19 (test)
MAE (Shadow Region)8.72
14
Shadow RemovalSRD NS (Non-Shadow Region)
MAE4.41
13
Showing 10 of 17 rows

Other info

Code

Follow for update