Abstract
Shadows included in images provide useful information for visual scene analysis, but are also factors that negatively affect digital image analysis. Therefore, shadow detection and removal must be considered essential in the preprocessing of the digital image analysis process. In this paper, the shadow region included in the image is detected using an illumination-invariant image whose characteristics do not change even under the influence of various illuminances, and a shadow removal method using the multi-channel gamma correction and a shadow depth map is proposed. In particular, cast shadows include umbra, which is a shadow that is completely obscured by an object that is covered by a light source according to the intensity of light, and penumbra, which is caused by the diffraction effect. In performing gamma correction of these two regions, the shadow was removed by increasing the brightness of the umbra compared to the penumbra region using the shadow depth map generated based on the statistical characteristics of the detected shadow region. As a result of the experiment, it was shown that the shadow removal of the proposed method effectively removes the umbra region in the natural image containing the shadow.
Similar content being viewed by others
References
Xu M, Zhu J, Lv P, Zhou B, Tappen MF, Ji R (2017) Learning-based shadow recognition and removal from monochromatic natural images. Proc IEEE Trans Image Process 26(12):5811–5824. https://doi.org/10.1109/TIP.2017.2737321
Guo R, Dai G, Hoiem D (2011) Single-image shadow detection and removal using paired regions. In: Proceedings of IEEE conference on computer vision and pattern recognition (CVPR), Colorado Springs, CO, USA, pp 2033–2040. https://doi.org/10.1109/CVPR.2011.5995725
Zhu J, Samuel KGG, Masood SZ, Tappen MF (2010) Learning to recognize shadows in monochromatic natural images. In: Proceedings of IEEE computer society conference on computer vision and pattern recognition (CVPR), San Francisco, CA, USA, pp 223–230. https://doi.org/10.1109/CVPR.2010.5540209
Tian J, Tang Y (2011) Linearity of each channel pixel values from a surface in and out of shadows and its applications. In: 2011 IEEE conference on proceeding of computer vision and pattern recognition (CVPR), Providence: RI, Colorado Springs, CO, USA, pp 985–992. https://doi.org/10.1109/CVPR.2011.5995622
Wei Z, Yao K, Ji X, Yang M (2009) Removing shadow in color images using a combined algorithm. Proceeding of Measuring Technology and Mechatronics Automation, Zhangjiajie, China. https://doi.org/10.1109/ICMTMA.2009.656
Finlayson GD, Hordley SD, Drew MS (2002) Removing shadows from images using Retinex. In: Proceedings of 10th color and imaging conference final program and proceeding, Scottsdale, Arizona, USA, pp 73–79
Backes AR, Gonçalves WN, Martinez AS, Bruno OM (2010) Texture analysis and classification using deterministic tourist walk. Pattern Recogn 43(3):685–694. https://doi.org/10.1016/j.patcog.2009.07.017
Jyothirmai MSV, Srinivas K, Srinivasa Rao V (2012) Enhancing shadow area using RGB color space. IOSR J Comput Eng 2(1):24–28. https://doi.org/10.9790/0661-0212428
Korea Herald Corporation. Newspaper Article [Internet]. http://biz.heraldcorp.com/view.php?ud=20160905000941
Park KH (2016) Shadow detection based intensity and cross entropy for effective analysis of satellite image. J Adv Navig Technol 20(4):380–385. https://doi.org/10.12673/jant.2016.20.4.380
Finlayson GD, Hordley SD, Drew MS (2002) Removing shadows from images. Proc Eur Conf Comput Vis Lecture Notes Comput Sci 2353:823–836. https://doi.org/10.1007/3-540-47979-1_55
Prati A, Mikic I, Trivedi M, Cucchiara R (2003) Detecting moving shadows: algorithms and evaluation. IEEE Trans Pattern Anal Mach Intell 25(7):918–923. https://doi.org/10.1109/TPAMI.2003.1206520
Hsieh JH, Hu WF, Chang CJ, Chen YS (2003) Shadow elimination for effective moving object detection by Gaussian shadow modeling. Image Vis Comput 21(6):505–516. https://doi.org/10.1016/S0262-8856(03)00030-1
Lalonde JF, Efros AA, Narasimhan SG (2010) Detecting ground shadows in outdoor consumer photographs. In: European conference on computer vision (ECCV), lecture notes in computer science, vol 6312, pp 322–335. https://doi.org/10.1007/978-3-642-15552-9_24
Sun B, Li S (2010) Moving cast shadow detection of vehicle using combined color models. In: 2010 Chinese conference on pattern recognition (CCPR), pp 1–5. https://doi.org/10.1109/CCPR.2010.5659321
Park KH, Kim JH, Kim YH (2018) Shadow detection using chromaticity and entropy in colour image. Int J Inf Technol Manage 17(1/2):44–50. https://doi.org/10.1504/IJITM.2018.089454
Zheng Q, Qiao X, Cao Y, Lau RWH (2019) Distraction-aware shadow detection. In: IEEE/CVF conference on computer vision and pattern recognition (CVPR), Long Beach, CA, USA, pp 5167–5176. https://doi.org/10.1109/CVPR.2019.00531
Park KH, Lee YS (2018) Definition and analysis of shadow features for shadow detection in single natural image. J Digit Contents Soc 19(1):165–171. https://doi.org/10.9728/dcs.2018.19.1.165
Vincent N, Mathew S (2014) Shadow detection: a review of various approaches to enhance image quality. Int J Comput Sci Eng 2(4):49–54
Wikipedia. Planckian locus [Internet]. https://en.wikipedia.org/wiki/Planckian_locus
Maddern W, Stewart A, McManus C, Upcroft B, Churchill W, Newman P (2014) Illumination invariant imaging: applications in robust vision-based localisation, mapping and classification for autonomous vehicles. In: Proceedings of the visual place recognition in changing environments workshop, IEEE international conference on robotics and automation
Wikipedia. Lambertian reflectance [Internet]. https://en.wikipedia.org/wiki/Lambertian_reflectance
Murali S, Govindan VK (2013) Shadow detection and removal from a single image using LAB color space. Cybern Inf Technol 13(1):95–103. https://doi.org/10.2478/cait-2013-0009
Deb K, Suny AH (2014) Shadow detection and removal based on YCbCr color space. J Smart Comput Rev, Korea Acad Ind Cooper Soc 4(1):23–33. https://doi.org/10.6029/smartcr.2014.01.003
Freitas VLS, Reis BMF, Tommaselli AMG (2017) Automatic shadow detection in aerial and terrestrial images. J Bull Geod Sci 23(4):578–590. https://doi.org/10.1590/s1982-21702017000400038
Tomasi C, Manduchi R (1998) Bilateral filtering for gray and color images. Proc IEEE Int Conf Comput Vis Bombay, India. https://doi.org/10.1109/ICCV.1998.710815
Wikipedia. rg Chromaticity [internet]. https://en.wikipedia.org/wiki/Rg_chromaticity
Drew MS, Finlayson GD, Hordley SD (2003) Recovery of chromaticity image free from shadows via illumination invariance. In: IEEE workshop on color and photometric methods in computer vision (ICCV), pp. 32–39
Otsu N (1979) A threshold selection method from gray-level histograms. IEEE Trans Syst Man Cybern 9(1):62–66. https://doi.org/10.1109/TSMC.1979.4310076
Sirmacek B, Unsalan C (2009) Damaged building detection in aerial images using shadow information. In: Proceedings of the 4th international conference on recent advances in space technologies, Istanbul, Turkey, pp 249–252. https://doi.org/10.1109/RAST.2009.5158206
Scott DW (2015) Multivariate density estimation: theory, practice and visualization, 2nd edn. Wiley, New Jersey
Gonzalez RC, Woods RE, Eddins SL (2004) Digital image processing using MATLAB, ch. 2, 1st edn. Pearson Prentice Hall, New Jersey, pp 66–68
Criminisi A, Perez P, Toyama K (2003) Object removal by exemplar-based inpainting. In: Proceedings of IEEE computer society conference on computer vision and pattern recognition (CVPR), Madison, WI, USA, pp 739–743. https://doi.org/10.1109/CVPR.2003.1211538
Keller JB (1962) Geometrical theory of diffraction. J Opt Soc Am 52(2):116–130. https://doi.org/10.1364/JOSA.52.000116
Primack H, Schanz H, Smilansky U, Ussishkin I (1996) Penumbra diffraction in the quantization of dispersing billiards. Phys Rev Lett 76:1615–1618. https://doi.org/10.1103/PhysRevLett.76.1615
Eli A, Hagit HO (2011) Shadow removal using intensity surfaces and texture anchor points. IEEE Trans Pattern Anal Mach Intell 33(6):1202–1216. https://doi.org/10.1109/TPAMI.2010.157
Acknowledgements
This work was supported by Hanshin University Research Grant.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Park, KH., Lee, Y.S. Simple shadow removal using shadow depth map and illumination-invariant feature. J Supercomput 78, 4487–4502 (2022). https://doi.org/10.1007/s11227-021-04043-5
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-021-04043-5