Shadow optimization from structured deep edge detection

Li Shen, Teck Wee Chua, Karianto LemanCVPR 2015

Abstract

Shadow detection is a critical task in computer vision, often complicated by the ambiguity between illumination changes and albedo variations. This paper presents a novel framework that integrates structured deep learning with a global optimization strategy. By employing a Convolutional Neural Network (CNN) to predict local edge structures instead of individual pixel labels, the method ensures local geometric consistency. These local predictions are then integrated into a global least-squares optimization problem that leverages geodesic connectivity and color similarity. Experimental results on UCF, CMU, and UIUC datasets demonstrate state-of-the-art performance, significantly improving accuracy over previous methods.

Introduction

Shadows are ubiquitous in natural scenes, providing important cues about geometry and lighting but also posing significant challenges for algorithms like object tracking and segmentation. The primary difficulty in single-image shadow detection is distinguishing shadows from dark-colored objects. Traditional methods often produce noisy results due to a lack of local consistency or rely on computationally expensive graphical models. This work addresses these issues by capturing local geometric structures and global region interactions efficiently.

Methods

The proposed approach consists of two main stages: structured deep edge detection and global shadow optimization.

1. Structured Deep Edge Detection

The core innovation is the use of a Structured CNN. Unlike standard CNNs that classify a single pixel, this model takes a $28 \times 28$ image patch and outputs a $5 \times 5$ local label map. This structured output allows the network to learn the inherent "grammar" of shadow edges—such as lines, curves, and corners—while rejecting physically improbable configurations like T-junctions.

Figure 2: The Structured CNN architecture takes a 28x28 patch and outputs a 5x5 local label map, represented as 25 nodes in the final layer.
Figure 1: Examples of image patches (a) with shadows and (b) without shadows, alongside their corresponding structured label maps which enforce local geometric consistency.

2. Global Shadow Optimization

To generate a full shadow map, the authors define "shadow" (dark side) and "bright" (light side) measures for image regions. Geodesic distance, based on color similarity, is used to determine the likelihood of a superpixel belonging to a shadow or bright region. The final shadow map is estimated by solving a least-squares optimization problem. This formulation integrates CNN predictions, connectivity measures, and color similarity into a single linear system, offering significant computational efficiency compared to discrete Markov Random Fields (MRFs).

Key Results

The model, dubbed SCNN-LinearOpt, was evaluated on three major benchmarks: UCF, CMU, and UIUC Shadow Datasets. It achieved state-of-the-art accuracy across all three:

  • UCF Dataset: 91.1% accuracy (a significant jump from the previous ~78% achieved by CNN-CRF methods).
  • UIUC Dataset: 91.3% accuracy.
  • CMU Dataset: 91.6% accuracy.

Qualitatively, the method proved robust in challenging scenarios, including "dark-on-dark" cases where shadows fall on already dark objects and complex self-shadowing in aerial photography.

Conclusion

By combining structured local predictions with efficient global optimization, this framework achieves superior shadow detection performance. The structured labeling approach effectively suppresses noise by learning valid geometric patterns, while the least-squares formulation ensures global consistency with high computational efficiency. Future work may extend this structured labeling paradigm to other low-level vision tasks such as boundary detection or region segmentation.

Summary updated

BibTeX
@inproceedings{shen2015shadow,
  author = {Li Shen and Teck Wee Chua and Karianto Leman},
  title = {{Shadow optimization from structured deep edge detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298818},
}
Figure