Table of Contents
Fetching ...

ShadowHack: Hacking Shadows via Luminance-Color Divide and Conquer

Jin Hu, Mingjia Li, Xiaojie Guo

TL;DR

ShadowHack tackles shadow-induced brightness loss, texture degradation, and color distortion by decoupling an image into luminance and color components for targeted restoration. It models the shadow formation as $I(x,\lambda)=S(x,\lambda)\cdot A(x,\lambda)$ and uses a decoupler $\mathcal{D}(\cdot)$ to obtain $I_t$ and $I_c$, enabling separate recovery paths. LRNet employs Local Range Blocks, Multi-head Transpose Attention, and Rectified Outreach Attention to recover illumination and textures, while CRNet leverages a pretrained color encoder and cross-attention guided color regeneration leveraging a pretrained color encoder. Across ISTD+ and SRD, ShadowHack achieves state-of-the-art restoration with strong generalization and robustness, and code will be publicly released.

Abstract

Shadows introduce challenges such as reduced brightness, texture deterioration, and color distortion in images, complicating a holistic solution. This study presents \textbf{ShadowHack}, a divide-and-conquer strategy that tackles these complexities by decomposing the original task into luminance recovery and color remedy. To brighten shadow regions and repair the corrupted textures in the luminance space, we customize LRNet, a U-shaped network with a rectified attention module, to enhance information interaction and recalibrate contaminated attention maps. With luminance recovered, CRNet then leverages cross-attention mechanisms to revive vibrant colors, producing visually compelling results. Extensive experiments on multiple datasets are conducted to demonstrate the superiority of ShadowHack over existing state-of-the-art solutions both quantitatively and qualitatively, highlighting the effectiveness of our design. Our code will be made publicly available.

ShadowHack: Hacking Shadows via Luminance-Color Divide and Conquer

TL;DR

ShadowHack tackles shadow-induced brightness loss, texture degradation, and color distortion by decoupling an image into luminance and color components for targeted restoration. It models the shadow formation as and uses a decoupler to obtain and , enabling separate recovery paths. LRNet employs Local Range Blocks, Multi-head Transpose Attention, and Rectified Outreach Attention to recover illumination and textures, while CRNet leverages a pretrained color encoder and cross-attention guided color regeneration leveraging a pretrained color encoder. Across ISTD+ and SRD, ShadowHack achieves state-of-the-art restoration with strong generalization and robustness, and code will be publicly released.

Abstract

Shadows introduce challenges such as reduced brightness, texture deterioration, and color distortion in images, complicating a holistic solution. This study presents \textbf{ShadowHack}, a divide-and-conquer strategy that tackles these complexities by decomposing the original task into luminance recovery and color remedy. To brighten shadow regions and repair the corrupted textures in the luminance space, we customize LRNet, a U-shaped network with a rectified attention module, to enhance information interaction and recalibrate contaminated attention maps. With luminance recovered, CRNet then leverages cross-attention mechanisms to revive vibrant colors, producing visually compelling results. Extensive experiments on multiple datasets are conducted to demonstrate the superiority of ShadowHack over existing state-of-the-art solutions both quantitatively and qualitatively, highlighting the effectiveness of our design. Our code will be made publicly available.

Paper Structure

This paper contains 12 sections, 13 equations, 12 figures, 5 tables.

Figures (12)

  • Figure 1: Visual comparison between our method and state-of-the-art methods in both Luminance and RGB spaces.
  • Figure 2: Example of the complex degradation in a shadow image.
  • Figure 3: Color bias in shadow regions between the reflectances of shadow and shadow-free images by Retinex decomposition GuoLL17.
  • Figure 4: The overall architecture of ShadowHack comprises two core components: (a) a luminance restoration network, which focuses on recovering illumination and texture, and (b) a color regeneration network dedicated to recalibrating harmonized colors for natural outputs.
  • Figure 5: The rectified outreach attention module with two different window partitioning schemes.
  • ...and 7 more figures