计算机工程与应用 ›› 2025, Vol. 61 ›› Issue (20): 260-269.DOI: 10.3778/j.issn.1002-8331.2406-0307

• 图形图像处理 • 上一篇    下一篇

生成对抗式双重解耦的分阶段阴影去除算法

曾文献,张曼钰,孙磊   

  1. 1.河北经贸大学 经济管理实验中心,石家庄 050061
    2.河北经贸大学 管理科学与信息工程学院,石家庄 050061
  • 出版日期:2025-10-15 发布日期:2025-10-15

Generative Adversarial Double Decoupling Staged Shadow Removal Algorithm

ZENG Wenxian, ZHANG Manyu, SUN Lei   

  1. 1.Economics and Management Experimental Center, Hebei University of Economics and Business, Shijiazhuang 050061, China
    2.School of Management Sciences and Information Engineering, Hebei University of Economics and Business, Shijiazhuang 050061, China
  • Online:2025-10-15 Published:2025-10-15

摘要: 针对当前阴影去除算法中普遍存在的阴影边缘处有伪影以及阴影与非阴影区域颜色恢复不一致问题,提出了一种生成对抗式双重解耦的分阶段阴影去除算法。该算法构建了一个生成对抗式主体模型框架,采用分阶段不同图像特征替代传统的单一彩色图像作为监督信号,实现了图像在通道和空间维度的解耦处理。在第一阶段,将图像在通道维度解耦为亮度通道(L)和颜色通道(AB)。针对亮度通道,提出了多尺度注意增强的空洞网络,通过逐级增加扩张率的空洞卷积捕获多尺度上下文信息,结合注意力机制精确提取局部特征,有效恢复阴影区域亮度并避免边缘伪影。针对颜色通道,设计了结合通道和空间注意力的颜色调整网络,专注于颜色校正。经过亮度恢复和颜色调整后的L通道和AB通道重新拼接,作为第二阶段的输入。在第二阶段,将图像在空间维度解耦为阴影和非阴影区域,设计了动态残差网络,采用标准卷积和深度可分离卷积分别提取特征,进一步解决边缘伪影和颜色不一致问题。实验结果表明,所提算法相较于其他先进算法表现优异,在避免边缘伪影、消除颜色不一致和提升图像质量方面具有显著优势。

关键词: 阴影去除, 生成对抗网络(GAN), 通道解耦, 空洞卷积, 动态卷积

Abstract: Aiming at the problems of artifacts at shadow edges and inconsistent color recovery between shadow and non-shadow regions, which are commonly found in current shadow removal algorithms, this paper proposes a generative adversarial double decoupling staged shadow removal algorithm. The algorithm constructs a generative adversarial subject model framework, adopts different image features in stages instead of the traditional single color image as the supervisory signal, and realizes the decoupling processing of the image in the channel and spatial dimensions. Firstly, the image is decoupled into luminance channel (L) and color channel (AB) in the channel dimension. For the luminance channel, a multi-scale attention-enhanced dilated network is proposed, which captures multi-scale contextual information through dilated convolution with stepwise increasing dilation rate, and accurately extracts local features by combining with the attention mechanism to effectively restore the brightness of shadow regions and avoid edge artifacts. For the color channel, a color adjustment network combining channel and spatial attention is designed to focus on color correction. The L-channel and AB-channel after luminance recovery and color adjustment are re-spliced and used as inputs in the second stage. Secondly, the image is decoupled into shadow and non-shadow regions in the spatial dimension, and a dynamic residual network is designed to extract features using standard convolution and depth-separable convolution, respectively, to further solve the problems of edge artifacts and color inconsistency. The experimental results show that the algorithm in this paper performs well compared with other state-of-the-art algorithms, and has significant advantages in avoiding edge artifacts, eliminating color inconsistency and improving image quality.

Key words: shadow removal, generative adversarial network(GAN), channel decoupling, dilated convolution, dynamic convolution