Skip to main content

Integration of GAN and Adaptive Exposure Correction for Shadow Removal

  • Conference paper
  • First Online:
Computer Vision and Image Processing (CVIP 2022)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1777))

Included in the following conference series:

  • 413 Accesses

Abstract

Shadow removal from images and videos is an essential task in computer vision that concentrates on detecting the shadow generated by the obstructed light source, and obtains realistic shadow-free results. In this paper, we present a method based on generative adversarial networks (GANs) for shadow removal by supervised learning. Specifically, we train two generators and two discriminators to learn the mapping between shadow and shadow-free image domains. We employ generative adversarial constraints with cycle consistency and content constraints to learn the mapping efficiently. We also propose an adaptive exposure correction module to handle the over-exposure problem in the shadow area of the result. We additionally present a method for improving the quality of benchmark datasets and eventually achieving better shadow removal results. We also show ablation studies to analyze the importance of the ground-truth data with the adaptive exposure correction module in the proposed framework and explore the impact of using different learning strategies in the presented method. We validate the approach on the available large-scale benchmark Image Shadow Triplets dataset (ISTD), and show quantitative and visual improvements in the state-of-the-art results.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Goodfellow, I., et al.: Generative adversarial nets. In: Advances in Neural Information Processing Systems, vol. 27, pp. 2672–2680 (2014)

    Google Scholar 

  2. Russakovsky, O., et al.: Imagenet large scale visual recognition challenge. Int. J. Comput. Vision (IJCV) 115(3), 211–252 (2015)

    Google Scholar 

  3. Bansal, N., Akashdeep, Aggarwal, N.: Deep learning based shadow detection in images. In: Krishna, C., Dutta, M., Kumar, R. (eds.) Proceedings of 2nd International Conference on Communication, Computing and Networking. LNNS, pp. 375–382. Springer, Singapore (2019). https://doi.org/10.1007/978-981-13-1217-5_37

  4. Fan, H., Han, M., Li, J.: Image shadow removal using end-to-end deep convolutional neural networks. Appl. Sci. (2019)

    Google Scholar 

  5. Gong, H., Cosker, D.: Interactive shadow removal and ground truth for variable scene categories. In: Proceedings of the British Machine Vision Conference (2014)

    Google Scholar 

  6. Guo, R., Dai, Q., Hoiem, D.: Paired regions for shadow detection and removal. IEEE Trans. Pattern Anal. Mach. Intell. 35(12), 2956–2967 (2013)

    Article  Google Scholar 

  7. Hu, X., Fu, C., Zhu, L., Qin, J., Heng, P.: Direction-aware spatial context features for shadow detection and removal. IEEE Trans. Pattern Anal. Mach. Intell. 42(11), 2795–2808 (2020)

    Article  Google Scholar 

  8. Hu, X., Jiang, Y., Fu, C., Heng, P.: Mask-ShadowGAN: learning to remove shadows from unpaired data. In: IEEE International Conference on Computer Vision (ICCV), pp. 2472–2481 (2019)

    Google Scholar 

  9. Isola, P., Zhu, J., Zhou, T., Efros, A.A.: Image-to-image translation with conditional adversarial networks. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1125–1134 (2017)

    Google Scholar 

  10. Johnson, J., Alahi, A., Fei-Fei, L.: Perceptual losses for real-time style transfer and super-resolution. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9906, pp. 694–711. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46475-6_43

    Chapter  Google Scholar 

  11. Khan, S.H., Bennamoun, M., Sohel, F., Togneri, R.: Automatic feature learning for robust shadow detection. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1939–1946 (2014)

    Google Scholar 

  12. Khan, S.H., Bennamoun, M., Sohel, F., Togneri, R.: Automatic shadow detection and removal from a single image. IEEE Trans. Pattern Anal. Mach. Intell. 38(3), 431–446 (2016)

    Article  Google Scholar 

  13. Khare, M., Srivastava, R.K., Khare, A.: Object tracking using combination of Daubechies complex wavelet transform and Zernike moment. Multimedia Tools Appl. 76(1), 1247–1290 (2017)

    Article  Google Scholar 

  14. Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. arXiv:1412.6980 (2014)

  15. Mirza, M., Osindero, S.: Conditional generative adversarial nets. arXiv:1411.1784 (2014)

  16. Nagae, T., Abiko, R., Yamaguchi, T., Ikehara, M.: Shadow detection and removal using GAN. In: Proceedings of 28th European Signal Processing Conference (EUSIPCO), pp. 630–634 (2021)

    Google Scholar 

  17. Nguyen, V., Vicente, T.F.Y., Zhao, M., Hoai, M., Samaras, D.: Shadow detection with conditional generative adversarial networks. In: IEEE International Conference on Computer Vision (ICCV), pp. 4510–4518 (2017)

    Google Scholar 

  18. Otsu, N.: A threshold selection method from gray-level histograms. IEEE Trans. Syst. Man Cybern. 9(1), 62–66 (1979)

    Article  MathSciNet  Google Scholar 

  19. Qu, L., Tian, J., He, S., Tang, Y., Lau, R.W.: DeshadowNet: a multi-context embedding deep network for shadow removal. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4067–4075 (2017)

    Google Scholar 

  20. Redmon, J., Divvala, S., Girshick, R., Farhadi, A.: You only look once: unified, real-time object detection. In: IEEE Conference on Computer vision and Pattern Recognition (CVPR), pp. 779–788 (2016)

    Google Scholar 

  21. Sanin, A., Sanderson, C., Lovell, B.C.: Shadow detection: a survey and comparative evaluation of recent methods. Pattern Recogn. 45(4), 1684–1695 (2012)

    Article  Google Scholar 

  22. Scikit-learn: https://scikit-learn.org/stable/

  23. ST-CGAN: https://github.com/IsHYuhi/ST-CGAN_Stacked_Conditional_Gen-erative_Adversarial_Networks

  24. Tan, C., Feng, X.: Unsupervised shadow removal using target consistency generative adversarial network. arXiv:2010.01291 (2020)

  25. Vicente, T.F.Y., Hou, L., Yu, C.-P., Hoai, M., Samaras, D.: Large-scale training of shadow detectors with noisily-annotated shadow examples. In: Leibe, B., Matas, J., Sebe, N., Welling, M. (eds.) ECCV 2016. LNCS, vol. 9910, pp. 816–832. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-46466-4_49

    Chapter  Google Scholar 

  26. Wang, B., Chen, C.L.P.: An effective background estimation method for shadows removal of document images. In: IEEE International Conference on Image Processing (ICIP), pp. 3611–3615 (2019)

    Google Scholar 

  27. Wang, J., Li, X., Yang, J.: Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1788–1797 (2018)

    Google Scholar 

  28. Yang, Q., Tan, K., Ahuja, N.: Shadow removal using bilateral filtering. IEEE Trans. Image Process. 21(10), 4361–4368 (2012)

    Google Scholar 

  29. Yao, K., Dong, J.: Removing shadows from a single real-world color image. In: IEEE International Conference on Image Processing (ICIP), pp. 3129–3132 (2009)

    Google Scholar 

  30. Zhu, J., Park, T., Isola, P., Efros, A.A.: Unpaired image-to-image translation using cycle-consistent adversarial networks. In: IEEE International Conference on Computer Vision (ICCV), pp. 2223–2232 (2017)

    Google Scholar 

Download references

Acknowledgements

This work was supported by the Science and Engineering Research Board (SERB), Department of Science and Technology (DST), New Delhi, India, under Grant No. CRG/2020/001982.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Manish Khare .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mehta, K., Khare, M., Hati, A. (2023). Integration of GAN and Adaptive Exposure Correction for Shadow Removal. In: Gupta, D., Bhurchandi, K., Murala, S., Raman, B., Kumar, S. (eds) Computer Vision and Image Processing. CVIP 2022. Communications in Computer and Information Science, vol 1777. Springer, Cham. https://doi.org/10.1007/978-3-031-31417-9_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-31417-9_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-31416-2

  • Online ISBN: 978-3-031-31417-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics