skip to main content
research-article

Exploiting Residual and Illumination with GANs for Shadow Detection and Shadow Removal

Published:25 February 2023Publication History
Skip Abstract Section

Abstract

Residual image and illumination estimation have been proven to be helpful for image enhancement. In this article, we propose a general framework, called RI-GAN, that exploits residual and illumination using generative adversarial networks (GANs). The proposed framework detects and removes shadows in a coarse-to-fine fashion. At the coarse stage, we employ three generators to produce a coarse shadow-removal result, a residual image, and an inverse illumination map. We also incorporate two indirect shadow-removal images via the residual image and the inverse illumination map. With the residual image, the illumination map, and the two indirect shadow-removal images as auxiliary information, the refinement stage estimates a shadow mask to identify shadow regions in the image, and then refines the coarse shadow-removal result to the fine shadow-free image. We introduce a cross-encoding module to the refinement generator, in which the use of feature-crossing can provide additional details to promote the shadow mask and the high-quality shadow-removal result. In addition, we apply data augmentation to the discriminator to reduce the dependence between representations of the discriminator and the quality of the predicted image. Experiments for shadow detection and shadow removal demonstrate that our method outperforms state-of-the-art methods. Furthermore, RI-GAN exhibits good performance in terms of image dehazing, rain removal, and highlight removal, demonstrating the effectiveness and flexibility of the proposed framework.

REFERENCES

  1. [1] Y. Akashi and T. Okatani. 2016. Separation of reflection components by sparse non-negative matrix factorization. Computer Vision and Image Understanding 146 (2016), 7785.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. [2] Chen C. and Li H.. 2021. Robust representation learning with feedback for single image deraining. In Conference on Computer Vision and Pattern Recognition (CVPR’21).Google ScholarGoogle ScholarCross RefCross Ref
  3. [3] Chen Ting, Zhai Xiaohua, Ritter Marvin, Lucic Mario, and Houlsby Neil. 2019. Self-supervised GANs via auxiliary rotation loss. In Conference on Computer Vision and Pattern Recognition (CVPR’19). 1214612155.Google ScholarGoogle ScholarCross RefCross Ref
  4. [4] Chen Zipei, Long Chengjiang, Zhang Ling, and Xiao Chunxia. 2021. CANet: A context-aware network for shadow removal. In IEEE International Conference on Computer Vision (ICCV’21). 47434752.Google ScholarGoogle ScholarCross RefCross Ref
  5. [5] Chen Zhihao, Zhu Lei, Wan Liang, Wang Song, and Heng Pheng Ann. 2020. A multi-task mean teacher for semi-supervised shadow detection. In Conference on Computer Vision and Pattern Recognition (CVPR’20).Google ScholarGoogle ScholarCross RefCross Ref
  6. [6] Cucchiara Rita, Grana Costantino, Piccardi Massimo, Prati Andrea, and Sirotti Stefano. 2002. Improving shadow suppression in moving object detection with HSV color information. In IEEE Intelligent Transportation Systems. 334339.Google ScholarGoogle Scholar
  7. [7] Cun Xiaodong, Pun Chi-Man, and Shi Cheng. 2020. Towards ghost-free shadow removal via dual hierarchical aggregation network and shadow matting GAN. In AAAI. 1068010687.Google ScholarGoogle Scholar
  8. [8] Das S. D. and Dutta S.. 2020. Fast deep multi-patch hierarchical network for nonhomogeneous image dehazing. In Conference on Computer Vision and Pattern Recognition (CVPR’20).Google ScholarGoogle Scholar
  9. [9] Ding Bin, Long Chengjiang, Zhang Ling, and Xiao Chunxia. 2019. ARGAN: Attentive recurrent generative adversarial network for shadow detection and removal.. In Conference on Computer Vision and Pattern Recognition (CVPR’19). 1021210221.Google ScholarGoogle ScholarCross RefCross Ref
  10. [10] Feng Liu and Gleicher Michael. 2008. Texture-consistent shadow removal. In European Conference on Computer Vision (ECCV’08). 437450.Google ScholarGoogle Scholar
  11. [11] Finlayson G. D., Hordley S. D., Lu C., and Drew M. S.. 2005. On the removal of shadows from images. T-PAMI (2005).Google ScholarGoogle Scholar
  12. [12] Fu Lan, Zhou Changqing, Guo Qing, Juefei-Xu Felix, Yu Hongkai, Feng Wei, Liu Yang, and Wang Song. 2021. Auto-exposure fusion for single-image shadow removal. In Conference on Computer Vision and Pattern Recognition (CVPR’21).Google ScholarGoogle ScholarCross RefCross Ref
  13. [13] Fu Xueyang, Zeng Delu, Huang Yue, Zhang Xiao-Ping, and Ding Xinghao. 2016. A weighted variational model for simultaneous reflectance and illumination estimation. In Conference on Computer Vision and Pattern Recognition (CVPR’16). 27822790.Google ScholarGoogle ScholarCross RefCross Ref
  14. [14] Gang Fu, Qing Zhang, Lei Zhu, Ping Li, and Xiao Chunxia. 2021. A multi-task network for joint specular highlight detection and removal. In Conference on Computer Vision and Pattern Recognition (CVPR’21).Google ScholarGoogle Scholar
  15. [15] Goodfellow I. J., Pouget-Abadie J., Mirza M., Bing X., and Bengio Y.. 2014. Generative adversarial nets. In Advances in Neural Information Processing Systems (NeurIPS’14).Google ScholarGoogle Scholar
  16. [16] Gryka Maciej, Terry Michael, and Brostow Gabriel J.. 2015. Learning to Remove Soft Shadows, Vol. 34. 1–15.Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. [17] Guo Ruiqi, Dai Qieyun, and Hoiem D.. 2011. Single-image shadow detection and removal using paired regions. In Conference on Computer Vision and Pattern Recognition (CVPR’11). 20332040.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. [18] Guo Xiaojie, Li Yu, and Ling Haibin. 2017. LIME: Low-light image enhancement via illumination map estimation. IEEE Transactions on Image Processing 26, 2 (2017), 982993.Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. [19] He K., Sun J., and Tang Xiaoou. 2011. Single image haze removal using dark channel prior. IEEE Transactions on Pattern Analysis and Machine Intelligence 33, 12 (2011), 23412353.Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. [20] He Zhang and Patel Vishal M.. 2018. Densely connected pyramid dehazing network. In Conference on Computer Vision and Pattern Recognition (CVPR’18). 31943203.Google ScholarGoogle Scholar
  21. [21] Hu X., Fu C. W., Lei Z., Jing Q., and Heng P. A.. 2020. Direction-aware spatial context features for shadow detection and removal. 42, 11 (2020), 27952808.Google ScholarGoogle Scholar
  22. [22] Hua Gang, Long Chengjiang, Yang Ming, and Gao Yan. 2018. Collaborative active visual recognition from crowds: A distributed ensemble approach. IEEE Transactions on Pattern Analysis and Machine Intelligence 40, 3 (2018), 582594.Google ScholarGoogle ScholarCross RefCross Ref
  23. [23] Khan S. H., Bennamoun M., Sohel F., and Togneri R.. 2016. Automatic shadow detection and removal from a single image. IEEE Transactions on Pattern Analysis and Machine Intelligence 38, 3 (2016), 431446.Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. [24] Le Hieu, Vicente Yago, Tomas F., Nguyen Vu, Hoai Minh, and Samaras Dimitris. 2018. A+ D net: Training a shadow detector with adversarial shadow attenuation. In European Conference on Computer Vision (ECCV’18). 680696.Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. [25] Li B., Peng X., Wang Z., Xu J., and Dan F.. 2017. AOD-Net: All-in-one dehazing network. In IEEE International Conference on Computer Vision (ICCV’17). 47804788.Google ScholarGoogle ScholarCross RefCross Ref
  26. [26] Liu Feng and Gleicher Michael. 2008. Texture-consistent shadow removal. In European Conference on Computer Vision (ECCV’08). (2008).Google ScholarGoogle Scholar
  27. [27] Liu Xiaohong, Ma Yongrui, Shi Zhihao, and Chen Jun. 2019. GridDehazeNet: Attention-based multi-scale network for image dehazing. In International Conference on Computer Vision (ICCV’19). 73137322.Google ScholarGoogle ScholarCross RefCross Ref
  28. [28] Long Chengjiang and Hua Gang. 2015. Multi-class multi-annotator active learning with robust Gaussian process for visual recognition. In International Conference on Computer Vision (ICCV’15). 28392847.Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. [29] Long Chengjiang and Hua Gang. 2017. Correlational gaussian processes for cross-domain visual recognition. In Conference on Computer Vision and Pattern Recognition (CVPR”17). 49324940.Google ScholarGoogle ScholarCross RefCross Ref
  30. [30] Long Chengjiang, Wang Xiaoyu, Hua Gang, Yang Ming, and Lin Yuanqing. 2014. Accurate object detection with location relaxation and regionlets re-localization. In Asia Conference on Computer Vision.Google ScholarGoogle Scholar
  31. [31] Luo Wenhan, Sun Peng, Zhong Fangwei, Liu Wei, Zhang Tong, and Wang Yizhou. 2020. End-to-end active object tracking and its real-world deployment via reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence 42, 6 (2020), 13171332.Google ScholarGoogle ScholarCross RefCross Ref
  32. [32] Mikic Ivana, Cosman Pamela C., Kogut Greg, and Trivedi Mohan M.. 2000. Moving shadow and object detection in traffic scenes. In Conference on International Conference on Pattern Recognition.Google ScholarGoogle Scholar
  33. [33] Miyato Takeru, Kataoka Toshiki, Koyama Masanori, and Yoshida Yuichi. 2018. Spectral normalization for generative adversarial networks. International Conference on Learning Representations (2018).Google ScholarGoogle Scholar
  34. [34] Nguyen Vu, Vicente Tomas F. Yago, Zhao Maozheng, Hoai Minh, and Samaras Dimitris. 2017. Shadow detection with conditional generative adversarial networks. In International Conference on Computer Vision (ICCV’19).Google ScholarGoogle ScholarCross RefCross Ref
  35. [35] Peng Long, Jiang Aiwen, Yi Qiaosi, and Wang Mingwen. 2020. Cumulative rain density sensing network for single image derain. IEEE Signal Processing Letters 27 (2020), 406410.Google ScholarGoogle ScholarCross RefCross Ref
  36. [36] Qu Liangqiong, Tian Jiandong, He Shengfeng, Tang Yandong, and Lau Rynson W. H.. 2017. DeshadowNet: A multi-context embedding deep network for shadow removal. In Conference on Computer Vision and Pattern Recognition (CVPR’17). 23082316.Google ScholarGoogle ScholarCross RefCross Ref
  37. [37] Raj N. Bharath and Venkateswaran N.. 2018. Single image haze removal using a generative adversarial network. In Conference on Computer Vision and Pattern Recognition (CVPR’18). 3742.Google ScholarGoogle Scholar
  38. [38] Ren Dongwei, Shang Wei, Zhu Pengfei, Hu Qinghua, and Zuo Wangmeng. 2020. Single image deraining using bilateral recurrent network. IEEE Transactions on Image Processing 29, 99 (2020), 68526863.Google ScholarGoogle ScholarCross RefCross Ref
  39. [39] H. Shen and Z. Zheng. 2013. Real-time highlight removal using intensity ratio. Applied Optics 52, 19 (2013), 44834493.Google ScholarGoogle ScholarCross RefCross Ref
  40. [40] Shor Yael and Lischinski Dani. 2008. The shadow meets the mask: Pyramid-based shadow removal. Computer Graphics Forum 27, 2 (2008), 577586.Google ScholarGoogle ScholarCross RefCross Ref
  41. [41] Sidorov Oleksii. 2019. Conditional GANs for multi-illuminant color constancy: Revolution or yet another approach? In Conference on Computer Vision and Pattern Recognition Workshops (CVPRW’19). 17481758.Google ScholarGoogle ScholarCross RefCross Ref
  42. [42] Vicente Tomas F. Yago, Hou Le, Yu Chenping, Hoai Minh, and Samaras Dimitris. 2016. Large-scale training of shadow detectors with noisily-annotated shadow examples. In Conference on European Conference on Computer Vision (ECCV’16).Google ScholarGoogle Scholar
  43. [43] Wang H., Xie Q., Zhao Q., and Meng D.. 2020. A model-driven deep neural network for single image rain removal. In Conference on Computer Vision and Pattern Recognition (CVPR’20).Google ScholarGoogle Scholar
  44. [44] Wang Jifeng, Li Xiang, Hui Le, and Yang Jian. 2018. Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In Conference on Computer Vision and Pattern Recognition (CVPR’18). 17881797.Google ScholarGoogle ScholarCross RefCross Ref
  45. [45] Wang Ruixing, Zhang Qing, Fu Chi-Wing, Shen Xiaoyong, Zheng Wei-Shi, and Jia Jiaya. 2019. Underexposed photo enhancement using deep illumination estimation. In Conference on Computer Vision and Pattern Recognition (CVPR’19). 68426850.Google ScholarGoogle ScholarCross RefCross Ref
  46. [46] Wang Tianyu, Hu Xiaowei, Wang Qiong, Heng Pheng Ann, and Fu Chi Wing. 2020. Instance shadow detection. In Conference on Computer Vision and Pattern Recognition (CVPR’20). 18771886.Google ScholarGoogle ScholarCross RefCross Ref
  47. [47] Wei Jingjiang, Long Chengjiang, Zhou Hua, and Xiao Chunxia. 2019. Shadow inpainting and removal using generative adversarial networks with slice convolutions. Computer Graphics Forum 38, 7 (2019), 381392.Google ScholarGoogle ScholarCross RefCross Ref
  48. [48] Wu Tai Pang, Tang Chi Keung, Brown Michael S., and Shum Heung Yeung. 2007. Natural shadow matting. ACM Transactions on Graphics 26, 2 (2007), 8.Google ScholarGoogle ScholarDigital LibraryDigital Library
  49. [49] Xiao B., Zheng Z., Chen X., Lv C., Zhuang Y., and Wang T.. 2021. Single UHD image dehazing via interpretable pyramid network. In Conference on Computer Vision and Pattern Recognition (CVPR’21).Google ScholarGoogle Scholar
  50. [50] Xiao Chunxia, She Ruiyun, Xiao Donglin, and Ma Kwan Liu. 2013. Fast shadow removal using adaptive multi-scale illumination transfer. Computer Graphics Forum 32, 8 (2013), 207218.Google ScholarGoogle ScholarCross RefCross Ref
  51. [51] Xiao Chunxia, Xiao Donglin, Zhang Ling, and Chen Lin. 2013. Efficient shadow removal using subregion matching illumination transfer. Computer Graphics Forum 32, 7 (2013), 421430.Google ScholarGoogle ScholarCross RefCross Ref
  52. [52] Yamamoto T. and Nakazawa A.. 2019. General improvement method of specular component separation using high-emphasis filter and similarity function. ITE Transactions on Media Technology Applications 7, 2 (2019), 92102.Google ScholarGoogle ScholarCross RefCross Ref
  53. [53] Yang Q., Tang J., and Ahuja N.. 2015. Efficient and robust specular highlight removal. IEEE Transactions on Pattern Analysis and Machine Intelligence 37, 6 (2015), 13041311.Google ScholarGoogle ScholarDigital LibraryDigital Library
  54. [54] Yun-Hsuan Lin, Wen-Chin Chen, and Yung-Yu Chuang. 2020. BEDSR-net: A deep shadow removal network from a single document image. In Conference on Computer Vision and Pattern Recognition (CVPR’20) (2020), 1290212911.Google ScholarGoogle Scholar
  55. [55] Zhang Ling, Long Chengjiang, Zhang Xiaolong, and Xiao Chunxia. 2020. RIS-GAN: Explore residual and illumination with generative adversarial networks for shadow removal. In Proceedings of the AAAI Conference on Artificial Intelligence (2020), 1282912836.Google ScholarGoogle ScholarCross RefCross Ref
  56. [56] Zhang Ling, Yan Qingan, Zhu Yao, Zhang Xiaolong, and Xiao Chunxia. 2019. Effective shadow removal via multi-scale image decomposition. The Visual Computer 35, 6–8 (2019), 10911104.Google ScholarGoogle ScholarDigital LibraryDigital Library
  57. [57] Zhang Ling, Zhang Qing, and Xiao Chunxia. 2015. Shadow remover: Image shadow removal based on illumination recovering optimization. IEEE Transactions on Image Processing 24, 11 (2015), 46234636.Google ScholarGoogle ScholarDigital LibraryDigital Library
  58. [58] Zheng Quanlong, Qiao Xiaotian, Cao Ying, and Lau Rynson W. H.. 2019. Distraction-aware shadow detection. In Conference on Computer Vision and Pattern Recognition (CVPR’19). 51625171.Google ScholarGoogle ScholarCross RefCross Ref
  59. [59] Zhu Lei, Deng Zijun, Hu Xiaowei, Fu Chi-Wing, Xu Xuemiao, Qin Jing, and Heng Pheng-Ann. 2018. Bidirectional feature pyramid network with recurrent attention residual modules for shadow detection. In European Conference on Computer Vision (ECCV’18). 122137.Google ScholarGoogle ScholarDigital LibraryDigital Library
  60. [60] Zhu Lei, Xu Ke, Ke Zhanghan, and Lau Rynson W. H.. 2021. Mitigating intensity bias in shadow detection via feature decomposition and reweighting. In International Conference on Computer Vision (ICCV’21). 46824691.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Exploiting Residual and Illumination with GANs for Shadow Detection and Shadow Removal

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM Transactions on Multimedia Computing, Communications, and Applications
      ACM Transactions on Multimedia Computing, Communications, and Applications  Volume 19, Issue 3
      May 2023
      514 pages
      ISSN:1551-6857
      EISSN:1551-6865
      DOI:10.1145/3582886
      • Editor:
      • Abdulmotaleb El Saddik
      Issue’s Table of Contents

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 25 February 2023
      • Online AM: 17 November 2022
      • Accepted: 6 November 2022
      • Revised: 18 July 2022
      • Received: 4 December 2021
      Published in tomm Volume 19, Issue 3

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
    • Article Metrics

      • Downloads (Last 12 months)242
      • Downloads (Last 6 weeks)24

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Full Text

    View this article in Full Text.

    View Full Text

    HTML Format

    View this article in HTML Format .

    View HTML Format