Skip to main content
PLOS One logoLink to PLOS One
. 2023 Feb 7;18(2):e0276284. doi: 10.1371/journal.pone.0276284

A differential correction based shadow removal method for real-time monitoring

Sheng Liu 1,#, Meng Chen 2,#, Zhiheng Li 3, Jingxian Liu 1,4,*,#, Menglong He 1,#
Editor: Zhaoqing Pan5
PMCID: PMC9904483  PMID: 36749764

Abstract

Shadow removal is an important issue in the field of motion object surveillance and automatic control. Although many works are concentrated on this issue, the diverse and similar motion patterns between shadows and objects still severely affect the removal performance. Constrained by the computational efficiency in real-time monitoring, the pixel feature based methods are still the main shadow removal methods in practice. Following this idea, this paper proposes a novel and simple shadow removal method based on a differential correction calculation between the pixel values of Red, Green and Blue channels. Specifically, considering the fact that shadows are formed because of the occlusion of light by objects, all the reflected light will be attenuated. Hence there will be a similar weakening trends in all Red, Green and Blue channels of the shadow areas, but not in the object areas. These trends can be caught by differential correction calculation and distinguish the shadow areas from object areas. Based on this feature, our shadow removal method is designed. Experiment results verify that, compared with other state-of-the-art shadow removal methods, our method improves the average of object and shadow detection accuracies by at least 10% in most of the cases.

Introduction

With the application of intelligent video surveillance and automatic control, shadow removal becomes more and more important. An effective shadow removal method can minimize the interference of shadows on object detection, recognition and control [1, 2]. In fact, shadow, as a phenomenon due to light being blocked by object, has the same motion property with object itself. Therefore, it is difficult to identify and remove shadows based on the judgment of motion property of image areas in the video. Meanwhile, considering the computational efficiency in real-time application and the cost of real-time monitoring equipment, deep neural network based methods [37] are difficult to be widely used. Hence, shadow removal is still an interesting and challenge work for real-time monitoring.

To satisfy the need for real-time computing in object surveillance, background difference based methods [8, 9] are still the most cost-effective methods in practical application. After background difference, all the areas of objects with shadows are detected. Then, the shadows can be further removed based on one or more features which can well distinguish shadows from objects. Currently, the best feature is the RGB pixel ratio [10]. As illustrated in [10], RGB pixel ratios of shadow areas before and after shadow covering are similar, and are significantly different from the ones of object areas. Hence, the shadow areas can be found by RGB pixel ratio comparison (RGB-PRC) method. However, according to the principle of shadow formation, it is the occlusion of light by objects that forms the shadow. In fact, it cannot be sure that the same areas in the images with and without shadows follow the same ratios of RGB pixel values, especially when the light is severely occluded. This phenomenon will be discussed in Section 3. To conquer this problem, this paper investigates all the image data in ISTD dataset [3, 4], and discovers a new pixel feature in the shadow areas of images according to a differential correction calculation. It is named RGB pixel differential correction (RGBP-DC) feature. Further, a new differential correction based shadow removal (DC-SR) is proposed according to the aforementioned RGBP-DC feature. The experiment results show that our DC-SR outperforms the state-of-the-art shadow removal methods.

The organizations of the remainder of this paper are structured as follows. In Related Work Section, the related works are described. In RGB Pixel Differential Correction Feature Section, the limitation of RGB-PRC method is illustrated, and a new RGBP-DC feature is proposed. Then, a new DC-SR method is designed based on the RGBP-DC feature in Differential Correction Based Shadow Removal Method Section. In Experiments Section, a lot of comparison experiments are performed to verify the effectiveness of the proposed DC-SR method. Finally, the conclusion and limitation of the proposed method are given in Conclusion Section. The main contributions of our work are summarized as follows:

  • A new pixel feature, i.e., RGBP-DC feature, is found in the shadow areas of images.

  • A new differential correction based shadow removal (DC-SR) method is proposed.

Related work

Currently, in the field of real-time monitoring, we still need the background difference to quickly find out the areas of objects. After that, the goal of shadow removal becomes to distinguish the shadow areas from the object areas based on two kinds of methods: the model-based and feature-based methods, respectively.

Model-based methods mainly use prior information to train corresponding models. For example, Zhang proposed a robust vehicle detection method with shadow elimination [11]. Amin Benish proposed a shadow mask extractor by using a three color attenuation model (TAM) and intensity information to segment the shadow area [12]. Saritha Murali proposed a method to remove shadows from images with uniform textures models [13]. However, those model-based methods depend on the determination of prior information, and also need a lot of training. Hence, the generalization ability of those methods are limited.

Different from model-based methods, feature-based methods mainly concentrate on distinguishing and removing the shadow by contour, brightness, color, texture and other features of pixel which are less affected by environmental factors. Hence, those methods have a wide range of application. For example, Xu obtained the stable shadow elimination results through HSV color features, by using the difference idea of image Log domain [14]. Park used shadow depth map and illumination invariance feature to remove shadows [15]. Li proposed a shadow weakening algorithm based on brightness and texture features without the prior training and manual intervention [16]. Salvador proposed a new cast shadow segmentation algorithm based on the shadow spectrum and geometric characteristics of shadows in the scene [17]. All the performance of shadow removal improved by using one or more features of images, but the computational cost is too expensive to satisfy the real time surveillance for motion object. Tang proposed a low computational cost algorithm to remove shadow according to the differences in foreground and background of the composition of pixel gray feature [18]. Chen further proposed a state-of-the-art shadow removal method: RGB pixel ratio comparison (RGB-PRC) method, based on the similar pixel change features. In this method, the shadow can be distinguished and removed directly according to the ratios of pixels between Red, Green and Blue (RGB) channels in the foreground and background [10]. Therefore, the effect of shadow removal can be greatly improved.

In this paper, we also concentrate on distinguishing and removing the shadow by pixel features. Different from the aforementioned features, the proposed pixel feature is obtained according to both the principle of shadow formation and the statistics of a large number of actual scenes. Hence, the feature proposed in this paper is more typical and has wider applicability. All of the above will be discussed in the next sections.

RGB pixel differential correction feature

In this section, RGBP-DC feature is discussed, in comparison with the RGB pixel ratio (RGBP-R) feature proposed in [10]. Generally speaking, given a real point p, let L(p) and Ls(p) represent the illuminance reflected from this point with and without the direct light exposures, respectively. In other words, Ls(p) represents the illuminance reflected from p when it is in shadow. Assuming that the coordinate of the corresponding point p in imaging plane is (x, y), the pixel values of this point in R, G and B channels are denoted as R(x, y), G(x, y) and B(x, y), respectively, and the ones in shadow are denoted as Rs(x, y), Gs(x, y) and Bs(x, y), respectively. According to [10], the aforementioned RGB pixel ratios RatioR(⋅), RatioG(⋅) and RatioB(⋅) are defined as:

RatioR(RGB(x,y))=R(x,y)R(x,y)+G(x,y)+B(x,y), (1a)
RatioG(RGB(x,y))=G(x,y)R(x,y)+G(x,y)+B(x,y), (1b)
RatioB(RGB(x,y))=B(x,y)R(x,y)+G(x,y)+B(x,y), (1c)

where RGB(x, y) ≜ {R(x, y), G(x, y), B(x, y)}.

Observation 1 Under the premise that the RGB pixel values are linearly related to the illuminance reflected from p , the performance of RGB-PRC method can be guaranteed.

Analysis 1 Under this premise in Observation 1, the pixel values of p in R, G and B channels can be simply calculated as follows [17]:

R(x,y)=SR(x,y)L(p), (2a)
G(x,y)=SG(x,y)L(p), (2b)
B(x,y)=SB(x,y)L(p), (2c)
Rs(x,y)=SR(x,y)Ls(p), (3a)
Gs(x,y)=SG(x,y)Ls(p), (3b)
Gs(x,y)=SB(x,y)Ls(p), (3c)

where SR(x, y), SG(x, y) and SB(x, y) are the linear photoelectric conversion coefficients in R, G and B channels, respectively. Obviously, under this premise of linearity, the ratios of pixel values in R, G and B channels are the same. That is,

RatioR(RGB(x,y))=SR(x,y)SR(x,y)+SG(x,y)+SB(x,y)=RatioR(RGBs(x,y)), (4a)
RatioG(RGB(x,y))=SG(x,y)SR(x,y)+SG(x,y)+SB(x,y)=RatioG(RGBs(x,y)), (4b)
RatioB(RGB(x,y))=SB(x,y)SR(x,y)+SG(x,y)+SB(x,y)=RatioB(RGBs(x,y)), (4c)

where RGBs(x, y) ≜ {Rs(x, y), Gs(x, y), Bs(x, y)}. Hence, based on this feature that the RGB pixel ratios with and without the direct light exposure are equal, the shadow area can be distinguish from the object and removed as other background.

This completes the analysis of Observation 1.

However, for most image sensors, the aforementioned linear relationship for imaging is only valid in a certain light intensity range [19, 20]. If light intensity is out of this range, for example the light is severely occluded in strong sunlight, the linear relationship for imaging cannot be guaranteed.

Observation 2 In the nonlinear range, the RGBP-R feature no longer exists.

Analysis 2 The nonlinear relationships between RGB pixel values and illuminance reflected from p are assumed to be:

R(x,y)=sr(L(p),(x,y)), (5a)
G(x,y)=sg(L(p),(x,y)), (5b)
B(x,y)=sb(L(p),(x,y)), (5c)

where sr(⋅), sg(⋅) and sb(⋅) are the nonlinear photoelectric conversion function in R, G and B channels, respectively. To simplify the analysis, Eq (5) is linearized based on the Taylor expansion as the following:

R(x,y)=sr(LΔ(p),(x,y))+sr(LΔ(p),(x,y))Ls(p)+(Ls(p)), (6a)
G(x,y)=sg(LΔ(p),(x,y))+sg(LΔ(p),(x,y))Ls(p)+(Ls(p)), (6b)
B(x,y)=sb(LΔ(p),(x,y))+sb(LΔ(p),(x,y))Ls(p)+(Ls(p)), (6c)

where LΔ(p)=L(p)-Ls(p). The reason why LΔ(p) is selected to expand the nonlinear functions is that Ls(p) is a variable much smaller than L(p), and the linearized results in (6) can be very closed to the original ones:

R(x,y)sr(LΔ(p),(x,y))+sr(LΔ(p),(x,y))Ls(p), (7a)
G(x,y)sg(LΔ(p),(x,y))+sg(LΔ(p),(x,y))Ls(p), (7b)
B(x,y)sb(LΔ(p),(x,y))+sb(LΔ(p),(x,y))Ls(p), (7c)

Similarly, when p is in the shadow, the RGB pixel values can be calculated as follows:

Rs(x,y)=sr(Ls(p),(x,y)), (8a)
Gs(x,y)=sg(Ls(p),(x,y)), (8b)
Bs(x,y)=sb(Ls(p),(x,y)). (8c)

Further, Eq (8) can be linearized based on the Taylor expansion and approximated as the following:

Rs(x,y)sr(0,(x,y))+sr(0,(x,y))Ls(p), (9a)
Gs(x,y)sg(0,(x,y))+sg(0,(x,y))Ls(p), (9b)
Bs(x,y)sb(0,(x,y))+sb(0,(x,y))Ls(p). (9c)

For common sensors, the output is 0 when input is 0. Hence, Eq (9) can be simplified as follows:

Rs(x,y)sr(0,(x,y))Ls(p), (10a)
Gs(x,y)sg(0,(x,y))Ls(p), (10b)
Bs(x,y)sb(0,(x,y))Ls(p). (10c)

Then, according to (7), the RatioR(⋅) with direct light from p can be approximately calculated as

RatioR(RGB(x,y))sr(LΔ(p),(x,y))+sr(LΔ(p),(x,y))Ls(p)srgb(LΔ(p),(x,y))+srgb(LΔ(p),(x,y))Ls(p), (11)

where srgb(LΔ(p),(x,y))=sr(LΔ(p),(x,y))+sg(LΔ(p),(x,y))+sb(LΔ(p),(x,y)), srgb(LΔ(p),(x,y))=sr(LΔ(p),(x,y))+sg(LΔ(p),(x,y))+sb(LΔ(p),(x,y)). Moreover, according to (10), the RatioR(⋅) without direct light from p can be approximately calculated as

RatioR(RGBs(x,y))sr(0,(x,y))Ls(p)srgb(0,(x,y))Ls(p)=sr(0,(x,y))srgb(0,(x,y)), (12)

where srgb(0,(x,y))=sr(0,(x,y))+sg(0,(x,y))+sb(0,(x,y)). Obviously, in most of the cases, RatioR(RGBs(x, y)) ≠ RatioR(RGB(x, y)). In other words, in the R channel, the pixel ratios with and without the direct light exposure are commonly unequal. These issues are also be found in the G and B channels. Hence, in the nonlinear range, the RGBP-R feature no longer exists.

This completes the analysis of Observation 2.

In order to eliminate shadows more effectively and robustly, this paper mines a new image feature, i.e., the RGBP-DC feature, to adapt to most shadow removal situations.

Observation 3 The differences between pixel values of point p with and without the direct light exposure in R, G and B channels are defined as ΔR(x, y), ΔG(x, y) and ΔB(x, y), respectively. Under a stable monitoring scenario, there are stable linear relationships on ΔR(x, y), ΔG(x, y) and ΔB(x, y).

Analysis 3 Under the stable monitoring scenario, the reduced illuminance LΔ(p) caused by the occlusion of light by different objects in different space are similar. Hence, LΔ(p) can be approximately replaced by a constant value C.

In Eq (7), Hence, Eq (7) can be further simplified as follows:

R(x,y)sr(C,(x,y))+sr(C,(x,y))Ls(p), (13a)
G(x,y)sg(C,(x,y))+sg(C,(x,y))Ls(p), (13b)
B(x,y)sb(C,(x,y))+sb(C,(x,y))Ls(p). (13c)

Then, jointing Eq (10), the differences of pixel values of points with and without the direct light exposure in different channels are calculated as follows:

ΔR(x,y)=R(x,y)-Rs(x,y)sr(C,(x,y))+(sr(C,(x,y)-sr(0,(x,y)))Ls(p), (14a)
ΔG(x,y)=G(x,y)-Gs(x,y)sg(C,(x,y))+(sg(C,(x,y)-sg(0,(x,y)))Ls(p), (14b)
ΔB(x,y)=B(x,y)-Bs(x,y)sb(C,(x,y))+(sb(C,(x,y)-sb(0,(x,y)))Ls(p). (14c)

Because sr(C, (x, y)), sg(C, (x, y)), sb(C, (x, y)), sr(C,(x,y)), sg(C,(x,y)), sb(C,(x,y)), sr(0,(x,y)), sg(0,(x,y)) and sb(0,(x,y)) are all unknown constants in the stable monitoring scenarios. The stable relationships between ΔR(x, y), ΔG(x, y) and ΔB(x, y) can be obtained by eliminating Ls(p) as follows:

ΔR(x,y)sr(C,(x,y))+(sr(C,(x,y)-sr(0,(x,y)))(sb(C,(x,y)-sb(0,(x,y)))(ΔB(x,y)-sb(C,(x,y))), (15a)
ΔG(x,y)sg(C,(x,y))+(sg(C,(x,y)-sg(0,(x,y)))(sb(C,(x,y)-sb(0,(x,y)))(ΔB(x,y)-sb(C,(x,y))), (15b)
ΔB(x,y)sb(C,(x,y))+(sb(C,(x,y)-sb(0,(x,y)))(sg(C,(x,y)-sg(0,(x,y)))(ΔG(x,y)-sg(C,(x,y))). (15c)

Eq (15) can be further simplified as follows:

ΔR(x,y)MB2R+NB2RΔB(x,y), (16a)
ΔG(x,y)MB2G+NB2GΔB(x,y), (16b)
ΔR(x,y)MG2R+NG2RΔG(x,y), (16c)

where

NB2R=(sr(C,(x,y)-sr(0,(x,y)))(sb(C,(x,y)-sb(0,(x,y))), (17a)
MB2R=sr(C,(x,y))-NB2Rsb(C,(x,y))), (17b)
NB2G=(sg(C,(x,y)-sg(0,(x,y)))(sb(C,(x,y)-sb(0,(x,y))), (17c)
MB2G=sg(C,(x,y))-NB2Gsb(C,(x,y))), (17d)
NG2R=(sr(C,(x,y)-sr(0,(x,y)))(sg(C,(x,y)-sg(0,(x,y))), (17e)
MG2R=sr(C,(x,y))-NG2Rsg(C,(x,y))). (17f)

Obviously, NB2R, MB2R, NB2G, MB2G, NG2R and MG2R are all unknown constants. Hence, under a stable monitoring scenario, all these aforementioned constants can be calculated by known ΔR(x, y), ΔG(x, y) and ΔB(x, y) in advance. Then, the stable linear relationships between the pixel differential values in R, G and B channels can be derived.

This completes the analysis of Observation 3.

Therefore, under the linear correction with Eq (16), the differences of ΔR(x, y), ΔG(x, y) and ΔB(x, y) are very small. That is:

ΔΔR&B(x,y)=ΔR(x,y)-[MB2R+NB2RΔB(x,y)]0, (18a)
ΔΔG&B(x,y)=ΔG(x,y)-[MB2G+NB2GΔB(x,y)]0, (18b)
ΔΔR&G(x,y)=ΔR(x,y)-[MG2R+NG2RΔG(x,y)]0. (18c)

Given any small threshold T, it is easily to find out that:

ΔΔR&B(x,y)<T, (19a)
ΔΔG&B(x,y)<T, (19b)
ΔΔR&G(x,y)<T. (19c)

This is the RGBP-DC feature, which can be used to discover and remove the shadow areas.

Differential correction based shadow removal method

In this section, the proposed DC-SR method is described in detail. Firstly, based on ISTD dataset [3, 4], a set of parameters in Eq (18) is determined for surveillance environments under common daylight. Secondly, the structure of shadow removal method is designed and the algorithmic complexity is discussed.

Parameters estimation according to ISTD dataset

As seen in Eq (16), constants NB2R, MB2R, NB2G, MB2G, NG2R and MG2R can be learnt as the unknown parameters, given known ΔR(x, y), ΔG(x, y) and ΔB(x, y) under actual monitoring scenes.

A major surveillance scene is monitoring during the day or under sunlight lamps. The light source for this monitoring is sunlight. This paper uses the ISTD dataset, in which all of images are taken under sunlight, to estimate those unknown parameters in such scene. Specifically, as seen in Fig 1, there are three kinds of image in each triplet of ISTD dataset: shadow image, shadow mask image and shadow-free image. To obtain a stable relationships between ΔR(x, y), ΔG(x, y) and ΔB(x, y), this paper derives the values of NB2R, MB2R, NB2G, MB2G, NG2R and MG2R based on the statistics of all triplets in this database.

Fig 1. Images of one triplet in ISTD dataset.

Fig 1

(a) shadow image. (b) shadow mask image. (c) shadow-free image.

First, for the ith triplet, the ΔR¯(i), ΔG¯(i) and ΔB¯(i), i.e., the means of all differences between the pixel values without and with shadow in shadow area of each R, G and B channel are calculated as:

ΔR¯(i)=1NpPsRsf(i,p)min[M(i,p),1]-Rs(i,p)min[M(i,p),1], (20a)
ΔG¯(i)=1NpPsGsf(i,p)min[M(i,p),1]-Gs(i,p)min[M(i,p),1], (20b)
ΔB¯(i)=1NpPsBsf(i,p)min[M(i,p),1]-Bs(i,p)min[M(i,p),1], (20c)

where Ps is the pixel set of images of the ith triplet, p is the pixel in Ps, N is the number of pixels in Ps. Rsf(i, p), Gsf(i, p), Bsf(i, p), Rs(i, p), Gs(i, p) and Bs(i, p) are the values of p in R, G and B channels of shadow-free image and shadow image, respectively. M(i, p) is the value of p in shadow mask image.

To simplify the expression of means of differences, this paper uses ΔR¯, ΔG¯ and ΔB¯ as common notations for the means of differences of any triplet. As seen in Eq (16), there are linear relationships between ΔR¯, ΔG¯ and ΔB¯. Obviously, |ΔR¯|, |ΔG¯| and |ΔB¯| will also obey linear relationships, further obey the RGBP-DC feature. To simplify subsequent calculations, this paper analyses the relationships of |ΔR¯|, |ΔG¯| and |ΔB¯| to obtain the RGBP-DC feature, instead of the ones of ΔR¯, ΔG¯ and ΔB¯.

The relationship of |ΔR¯|, |ΔG¯| and |ΔB¯| of all the triplet in ISTD dataset is summarized in Fig 2. In this figure, each red points in three sub-figures are the pairs of (|ΔB¯|, |ΔG¯|), (|ΔB¯|, |ΔR¯|) and (|ΔG¯|, |ΔR¯|) of the i triplet. Obviously, the linear relationships can be fitted as the blue lines in Fig 2, and their function is shown as follows,

ΔR¯=0.39+1.26ΔB¯, (21a)
ΔG¯=0.85+1.10ΔB¯, (21b)
ΔR¯=0.11+1.11ΔG¯. (21c)

Hence, according Eq (21), the RGBP-DC feature for common daylight monitoring is derived.

Fig 2. The relationships of |ΔR¯|, |ΔG¯| and |ΔB¯|.

Fig 2

(a) |ΔB¯| & |ΔR¯|. (b) |ΔB¯| & |ΔG¯|. (c) |ΔG¯| & |ΔR¯|.

The structure of DC-SR method

Generally speaking, the goal of shadow removal for monitoring is to eliminate the effect of shadows on object recognition. When objects are detected by cameras, the shadows are also detected as part of the objects, thus seriously affecting the accuracy of detection. Because there is no RGBP-DC feature in the actual object areas of foreground, the shadows areas can be found and distinguished from object areas by RGBP-DC feature.

Specifically, based on the RGBP-DC feature, the structure of the proposed DC-SR method is described in Fig 3. As we can see in this figure, a background image Ib need to be firstly determined before monitoring. Then, given a foreground image If, the absolute value of the first difference of the complete image ΔIc is calculated as follows,

ΔIc=Ib-If. (22)

Fig 3. The calculation structure of DC-SR.

Fig 3

Obviously, ∣ΔIc∣ includes R, G and B channels, i.e., ∣ΔRc∣, ∣ΔGc∣ and ∣ΔBc∣. In addition, the grayscales of foreground and background are calculated, and the mask of objects with shadow in foreground image, which is denoted as Im, is derived by thresholding the absolute differences of grayscales. Then, the first order differences of objects with shadow in R, G and B channels are calculated as follows,

ΔR=ΔRcIm, (23a)
ΔG=ΔGcIm, (23b)
ΔB=ΔBcIm. (23c)

According to the RGBP-DC feature, the second differences are calculated by differential correction (DC) Eq (21) as follows,

ΔΔR&B=ΔR-[0.39+1.26ΔB], (24a)
ΔΔG&B=ΔG-[0.85+1.10ΔB], (24b)
ΔΔR&G=ΔR-[0.11+1.11ΔG]. (24c)

A proper constant T is set in “Thresholding2” to distinguish the shadow as follows:

ΔΔR&B(x,y)<T, (25a)
ΔΔG&B(x,y)<T, (25b)
ΔΔR&G(x,y)<T. (25c)

Then any pixel in image, which satisfies (25), is considered to be shadow pixel and removed. That is, in “Thresholding2”, all pixels satisfy inequalities (25) are set to be 0, and others are set to be 255. Then the image of object after shadow removal can be derived. The whole calculation process of this method is summarized in Algorithm 1. All the codes and results can be found at: https://github.com/ljx43031/DC-SR-method.

Algorithm 1 DC-SR method

Input: Foreground image If, background image Ib, the values of NB2R, MB2R, NB2G, MB2G, NG2R and MG2R, threshold T.

Output: The binary image of objects without shadows.

 1. ∣ΔIc∣ is calculated as: ∣ΔIc∣ = ∣IbIf∣.

 2. Grayscale If and Ib to get Ifg and Ibg.

 3. Thresholding ∣IfgIbg∣ → Im

 4. ∣ΔIc[:, :, 2]∣ Im → ∣ΔR

 5. ∣ΔIc[:, :, 1]∣ Im → ∣ΔG

 6. ∣ΔIc[:, :, 0]∣ Im → ∣ΔB

 7. ΔR − [MB2R + NB2RΔB] → ΔΔR&B

 8. ΔG − [MB2G + NB2GΔB] → ΔΔG&B

 9. ΔR − [MG2R + NG2RΔG] → ΔΔR&G

 10. For: pixel p(x, y) in image:

  (a) If:ΔΔR&B(x, y) < T and ΔΔG&B(x, y) < T and ΔΔR&G(x, y) < T

   The value of p(x, y) is set to be 255

  (b) Else:

   The value of p(x, y) is set to be 0

  End

Time complexity analysis

As described in Algorithm 1, there are 10 steps for each shadow removal calculation. Assuming the image size is N × M × 3, step 1 contains N × M × 3 subtractions and absolute value calculations, hence the time complexity is O(N × M × 6). Step 2 needs to grayscale If and Ib, which in fact averages the pixel values If and Ib. Hence, this calculation performs two additions and one division for each pixel, and the time complexity is O(N × M × 6). Step 3 contains N × M subtractions and thresholding calculations, hence the time complexity is O(N × M × 2). Moreover, it can be easily known that the time complexity is O(N × M × 3) from step 4 to 6, and O(N × M × 9) from step 7 to 9. Step 10 is the judgements for each pixel, whose time complexity is O(N × M × 3). Obviously, the total time complexity of this algorithm is O(N × M × 29). In other words, the time complexity of this method is linearly related to the number of pixels of the video frame.

Experiments

In this section, our DC-SR method is evaluated in both outdoor and indoor (with sunlight lamp) environments, in comparison with RGB-PRC method and the Gray Levels Comparison (GLC) method [18]. Further, we test our DC-SR method under real-time monitoring, in order to prove its reliability and stability. For a fair comparison, the thresholds used in all the aforementioned methods are fixed. Specifically, the threshold used in our DC-SR method is set to be 8. According to [10, 18], the thresholds used in RGB-PRC and GLC method are set to be 0.008 and 35, respectively.

The implementation description

In this paper, we use Hikvision 2 megapixel USB camera to take photos and use ordinary computer to run the program of the proposed method.

Analysis of shadow removal performance in static scene

Outdoor environment

We compare the shadow removal performances of the aforementioned three methods in outdoor environment. The results are shown in Fig 4. In this figure, the first column shows the background image, the second column shows the foreground image, the third column shows the foreground image with object circled in red lines, the forth to sixth columns show the shadow removal results of the GLC, RGB-PRC and DC-SR methods, respectively. In this bright outdoor environment, the backlit sides of the objects are very dark, which are very similar as the shadows in terms of the intensity of light reflection. Hence, those methods, such as the GLC method, which distinguish shadows relying on the intensity of light reflections will fail. This problem can be obviously seen in the forth column of Fig 4. Moreover, as mentioned in RGB Pixel Differential Correction Feature Section, the RGBP-R feature is not accurate enough to distinguish the shadow area from the object area in those bright light environments. Hence, as seen in the fifth column of Fig 4, the shadow removal performance of RGB-PRC method degrades in those environments. That is, if the object can be completely detected, the shadow cannot be perfectly removed, for example the image in the third row and fifth column. Conversely, if the shadow can be perfectly removed, the object cannot be completely detected, for example the image in the sixth row and fifth column. However, the shadow removal results of the sixth column of Fig 4 show that the proposed DC-SR method can accurately detected the object while well removing the shadow. Hence, our DC-SR method can outperforms other shadow removal methods in outdoor environment with bright light.

Fig 4. Comparison of shadow removal with GLC, RGB-PRC and DC-SR methods, respectively, in outdoor environments.

Fig 4

(a) Background. (b) Foreground. (c) Object circled in red. (d) GLC. (e) RGB-PRC. (f) DC-SR.

Indoor environment

As seen in Fig 5, both the performance of GLC and RGB-PRC are improved because the light intensity is much weaker than sunlight. But obviously, the proposed DC-SR method still provides the most accurate object detection results with similar shadow removal performances.

Fig 5. Comparison of shadow removal with GLC, RGB-PRC and DC-SR methods, respectively, in indoor environments.

Fig 5

(a) Background (b) Foreground (c) Object circled in red. (d) GLC. (e) RGB-PRC. (f) DC-SR.

Evaluation metric

To further verify the shadow removal effect of DC-SR method, we propose the average of object and shadow detection accuracies as the evaluation metric. specifically, the essence of shadow removal is to distinguish the shadows from objects. In other words, the objects need to be correctly detected while well removing the shadows. Hence, we average the object and shadow detection accuracies to obtain a proper overall merit for shadow removal as follows:

12(NobjectdetectedNobjectactual+NshadowdetectedNshadowactual), (26)

where Nobjectdetected and Nshadowdetected are the numbers of pixels of detected object and shadow areas, respectively. Nobjectactual and Nshadowactual are the numbers of pixels of actual object and shadow areas, respectively. To use the metric (26), actual object and shadow areas need to be known first. Hence, we manually marked the counters of the object for each case, as seen in the third columns of Figs 4 and 5, to get the actual object area. Further, we eliminate the actual object area from the difference image of foreground and background to obtain the actual shadow area. The comparison results are shown in Table 1. The cases of outdoors 1 to 6 corresponds to each row of Fig 4 and the cases of indoors 1 to 3 corresponds to each row of Fig 5. In Table 1, we can see that, in each case, the proposed DC-SR method improves the average of object and shadow detection accuracies by at least 10% except Indoors 3. But in fact, the average accuracy of proposed method is still higher that other methods in the Indoors 3 case. Hence, our DC-SR method outperforms other state-of-the-art shadow removal methods.

Table 1. Accuracy comparison.
Cases GLC RGB-PRC (m) DC-SR
Outdoors 1 Object detection accuracy 0.80 0.65 0.86
Shadow removal accuracy 0.45 0.82 0.80
Average accuracy 0.63 0.73 0.83
Outdoors 2 Object detection accuracy 0.89 0.88 0.93
Shadow removal accuracy 0.50 0.70 0.87
Average accuracy 0.69 0.79 0.90
Outdoors 3 Object detection accuracy 0.64 0.85 0.74
Shadow removal accuracy 0.32 0.65 0.99
Average accuracy 0.48 0.75 0.86
Outdoors 4 Object detection accuracy 0.38 0.56 0.64
Shadow removal accuracy 0.52 0.63 0.92
Average accuracy 0.45 0.59 0.78
Outdoors 5 Object detection accuracy 0.85 0.83 0.61
Shadow removal accuracy 0.47 0.48 0.99
Average accuracy 0.66 0.66 0.80
Outdoors 6 Object detection accuracy 0.75 0.51 0.78
Shadow removal accuracy 0.43 0.73 0.97
Average accuracy 0.59 0.62 0.87
Indoors 1 Object detection accuracy 0.37 0.44 0.83
Shadow removal accuracy 0.76 0.92 0.89
Average accuracy 0.56 0.68 0.86
Indoors 2 Object detection accuracy 0.35 0.30 0.92
Shadow removal accuracy 0.95 0.95 0.91
Average accuracy 0.65 0.63 0.92
Indoors 3 Object detection accuracy 0.79 0.77 0.81
Shadow removal accuracy 0.83 0.98 0.98
Average accuracy 0.81 0.88 0.90

Performance testing for monitoring

To further verify the performance of our DC-SR method for monitoring, we test our DC-SR method under real-time monitoring. The results are shown in Figs 6 and 7. In the first rows of the two figures, the blue tracking boxes correctly frame the object area without the shadow area at any time steps. Moreover, in the second rows of the two figures, the white areas are the objects detected after shadow removal. Obviously, we can see that no shadow areas are included and the car was correctly detected.

Fig 6. Shadow removal results at different time steps with our DC-SR method under real-time monitoring, when object moves in a straight line.

Fig 6

(a) time step 1. (b) time step 2. (c) time step 3.

Fig 7. Shadow removal results at different time steps with our DC-SR method under real-time monitoring, when object turns.

Fig 7

(a) time step 1. (b) time step 2. (c) time step 3.

Meanwhile, we test the computational time of all the aforementioned methods with the same Intel Core i7-8700 CPU at 3.2 GHz and 32 GB RAM. The results are that the proposed DC-SR method consumes 19.9ms for each removal calculation while the GLC and RGB-PRC methods consume 5.0 and 20.9 ms, respectively. Hence, the computational efficiency of the proposed DC-SR method meets the requirements of monitoring, which can be further verified that no frame drops were found in real-time monitoring experiments. Therefore, our DC-SR method can achieve efficient and accurate shadow removal in real-time monitoring.

Conclusion

In this paper, we propose a new differential correction based shadow removal (DC-SR) method based on the new RGB pixel differential correction (RGBP-DC) feature in the shadow areas. From the effect of shadow removal, the proposed RGBP-DC feature, which can well distinguish the shadow areas from objects, is more suitable for shadow removal under both daylight and sunlight lamp environments. Experiments proves that our DC-SR method performs better in comparison with the state-of-the-art shadow removal methods of monitoring. Further, the results of time complexity analysis and algorithm testing in real-time monitoring show that our DC-SR method has the ability to efficiently and accurately remove shadows.

In fact, the performance of our DC-SR method is closely related to the parameters in (16). Although those parameters are set based on the ISTD dataset which covers the main daylight environments and represents the most common relationship between shadow and shadow-free images, in some special low-light or polarized environments, the performance of our method will still degrade. How to improve the adaptability of the method to those special environments will be an important future work.

Data Availability

All the codes and results presented in the study are available from https://github.com/ljx43031/DC-SR-method. Further, this URL can also be found in the last of The structure of DC-SR method Subsection of this manuscript to support our results.

Funding Statement

This work was supported by NSFC under Grant Number 62061003 and Guangxi Science and Technology Plan Project under Grant Numbers AD19245047, in part by Guangxi University of Science and Technology Doctoral Fund under Grant Number XKB19Z02, in part by Liuzhou Science and Technology Plan Project under Grant Numbers 2021ADB0102. All funding was granted to JL. Moreover, this work was also supported in part by Natural Science Foundation of Sichuan Province under Grant Number 2022NSFSC1885. The funder of this project played the role of funding and comparison method provision in this work.

References

  • 1. Yaghoobi Ershadi N, Menéndez JM, Jiménez D. Robust vehicle detection in different weather conditions: Using MIPM. PloS one. 2018;13(3):e0191355. doi: 10.1371/journal.pone.0191355 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Liu F, Zeng Z, Jiang R. A video-based real-time adaptive vehicle-counting system for urban roads. PloS one. 2017;12(11):e0186098. doi: 10.1371/journal.pone.0186098 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Wang J, Li X, Yang J. Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2018. p. 1788–1797.
  • 4.Le H, Samaras D. Shadow removal via shadow image decomposition. In: Proceedings of the IEEE/CVF International Conference on Computer Vision; 2019. p. 8578–8587.
  • 5.Fu L, Zhou C, Guo Q, Juefei-Xu F, Yu H, Feng W, et al. Auto-exposure fusion for single-image shadow removal. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition; 2021. p. 10571–10580.
  • 6.Qu L, Tian J, He S, Tang Y, Lau RW. Deshadownet: A multi-context embedding deep network for shadow removal. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2017. p. 4067–4075.
  • 7.Cun X, Pun CM, Shi C. Towards ghost-free shadow removal via dual hierarchical aggregation network and shadow matting gan. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 34; 2020. p. 10680–10687.
  • 8. Liu R, Ruichek Y, El Bagdouri M. Multispectral background subtraction with deep learning. Journal of Visual Communication and Image Representation. 2021;80:103267. doi: 10.1016/j.jvcir.2021.103267 [DOI] [Google Scholar]
  • 9. Vijayan M, Raguraman P, Mohan R. A Fully Residual Convolutional Neural Network for Background Subtraction. Pattern Recognition Letters. 2021;146:63–69. doi: 10.1016/j.patrec.2021.02.017 [DOI] [Google Scholar]
  • 10. Chen R, Li P, Huang Y. Moving Shadow Removal Algorithm Based on Multi-feature Fusion. Computer Science. 2018;45(6):291–295. [Google Scholar]
  • 11. Zhang J, Guo X, Zhang C, Liu P. A vehicle detection and shadow elimination method based on greyscale information, edge information, and prior knowledge. Computers & Electrical Engineering. 2021;94:107366. doi: 10.1016/j.compeleceng.2021.107366 [DOI] [Google Scholar]
  • 12. Amin B, Riaz MM, Ghafoor A. Automatic shadow detection and removal using image matting. Signal Processing. 2020;170:107415. doi: 10.1016/j.sigpro.2019.107415 [DOI] [Google Scholar]
  • 13. Murali S, Govindan V, Kalady S. Shadow removal from uniform-textured images using iterative thresholding of shearlet coefficients. Multimedia Tools and Applications. 2019;78(15):21167–21186. doi: 10.1007/s11042-019-7435-5 [DOI] [Google Scholar]
  • 14. Xu H, Hou X, Qin Y. Vehicle Shadow Elimination Method Based on HSV Color Feature. Journal of Xuzhou Institute of Technology (Natural Science Edition). 2016;31(02):5–8. [Google Scholar]
  • 15. Park KH, Lee YS. Simple shadow removal using shadow depth map and illumination-invariant feature. The Journal of Supercomputing. 2021; p. 1–16. [Google Scholar]
  • 16. Li Y, Cao K, Wang J, Mei C. A Vehicle Shadow Elimination Algorithm Based on Principal Component Analysis algorithm. Science Technology and Engineering. 2017;17(28):91–97. [Google Scholar]
  • 17. Salvador E, Cavallaro A, Ebrahimi T. Cast shadow segmentation using invariant color features. Computer vision and image understanding. 2004;95(2):238–259. doi: 10.1016/j.cviu.2004.03.008 [DOI] [Google Scholar]
  • 18. Tang C, Ahmad MO, Wang C. An efficient method of cast shadow removal using multiple features. Signal, Image and Video Processing. 2013;7(4):695–703. doi: 10.1007/s11760-013-0470-1 [DOI] [Google Scholar]
  • 19. JIN Xf, YUE Sg, Liu Ly, CHEN M, ZHAO Y, WANG Cf. Research on CMOS image sensor hard reset circuit. ACTA ELECTONICA SINICA. 2014;42(1):182. [Google Scholar]
  • 20. Tian H, Fowler B, Gamal AE. Analysis of temporal noise in CMOS photodiode active pixel sensor. IEEE Journal of Solid-State Circuits. 2001;36(1):92–101. doi: 10.1109/4.896233 [DOI] [Google Scholar]

Decision Letter 0

Zhaoqing Pan

2 Aug 2022

PONE-D-22-17507A differential correction based shadow removal method for real-time monitoringPLOS ONE

Dear Dr. Liu,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Sep 16 2022 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Zhaoqing Pan, Ph.D.

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at 

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and 

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf.

2. Please note that PLOS ONE has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, all author-generated code must be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. Thank you for stating the following in the Acknowledgments Section of your manuscript: 

"This work was supported by NSFC under Grant Number 62061003 and Guangxi Science and Technology Project under Grant Numbers AD19245047, in part by Guangxi University of Science and Technology Doctoral Fund under Grant Number XKB19Z02, in part by Liuzhou Science and Technology Plan Project under Grant Numbers 2021ADB0102, in part by Natural Science Foundation of Guangxi Provence under 

Grant Numbers 2019GXNSFAA245049".

We note that you have provided funding information that is currently declared in your Funding Statement. However, funding information should not appear in the Acknowledgments section or other areas of your manuscript. We will only publish funding information present in the Funding Statement section of the online submission form. 

Please remove any funding-related text from the manuscript and let us know how you would like to update your Funding Statement. Currently, your Funding Statement reads as follows: 

"This work was supported by NSFC under Grant Number 62061003 and Natural Science Foundation of Guangxi Provence under Grant Numbers AD19245047 and 2019GXNSFAA245049, in part by Guangxi University of Science and Technology Doctoral Fund under Grant Number XKB19Z02, in part by Liuzhou Science and Technology Plan Project under Grant Numbers 2021ADB0102".

Please include your amended statements within your cover letter; we will change the online submission form on your behalf.

Additional Editor Comments:

This submission needs a major revision.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Partly

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: No

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: No

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: ID : PONE-D-22-17507

Title : A differential correction based shadow removal method for real-time monitoring

Summary:

In this work, a shadow removal method-based on a differential correction is proposed. The proposed method computes the differential correlation between the pixel values of the channel in RGB color space.

The manuscript is interesting; however, the following comment should be addressed :

Abstract :

- - - - - - - - - - -

1 – Results should be included at the end of the abstract in terms of improvement ratio between the proposed and existing works .

Introduction Section :

- - - - - - - - - - - - - - - - - - - - - -

2 – The Introduction section is lengthy and need to be separated into Introduction and Related Work sections .

3 – organization of the manuscript should be included at the end of the Introduction section .

RGB pixel differential correction feature Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

4 – Check for grammatical errors and typos.

Differential correction based shadow removal method Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

5 – more visual example are required .

The structure of DC-SR method Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

6 – Pseudo code of the method need to be included .

7 – the implementation need be included as a supplementary file for review purposes .

Experiments Section :

- - - - - - - - - - - - - - - - -

8 - Experimental computation time need to be included .

9 – Discussion is unclear .

10 – comparison with recent algorithm should be included .

11 – Evaluation metrics should be used to evaluate the performance of the proposed method .

Conclusion Section :

- - - - - - - - - - - - - - - - - - - - - -

12 – The limitation of this work should be clearly included in the conclusion section .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

Decision Letter 1

Zhaoqing Pan

4 Oct 2022

A differential correction based shadow removal method for real-time monitoring

PONE-D-22-17507R1

Dear Dr. Liu,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at http://www.editorialmanager.com/pone/, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Zhaoqing Pan, Ph.D.

Academic Editor

PLOS ONE

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: ID : PONE-D-22-17507 R1

Title : A differential correction based shadow removal method for real-time monitoring

Summary:

In this work, a shadow removal method-based on a differential correction is proposed. The proposed method computes the differential correlation between the pixel values of the channel in RGB color space.

In the revised manuscript, the authors have address all the raised comments .

Abstract :

- - - - - - - - - - -

1 – The abstract is fine. No comments .

Introduction Section :

- - - - - - - - - - - - - - - - - - - - - -

2 – This section is fine. No comments .

Related Work Section :

- - - - - - - - - - - - - - - - - - - - - -

3 – This section is fine. No comments .

RGB pixel differential correction feature Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

4 – This section is fine. No comments .

Differential correction based shadow removal method Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

5 – This section is fine. No comments .

The structure of DC-SR method Section :

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

6 – This section is fine. No comments .

Experiments Section :

- - - - - - - - - - - - - - - - -

7 - This section is fine. No comments .

Conclusion Section :

- - - - - - - - - - - - - - - - - - - - - -

8 – This section is fine. No comments .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

**********

Acceptance letter

Zhaoqing Pan

28 Oct 2022

PONE-D-22-17507R1

A differential correction based shadow removal method for real-time monitoring

Dear Dr. Liu:

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now with our production department.

If your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information please contact onepress@plos.org.

If we can help with anything else, please email us at plosone@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Zhaoqing Pan

Academic Editor

PLOS ONE

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    Attachment

    Submitted filename: Response_to_Reviewer.pdf

    Data Availability Statement

    All the codes and results presented in the study are available from https://github.com/ljx43031/DC-SR-method. Further, this URL can also be found in the last of The structure of DC-SR method Subsection of this manuscript to support our results.


    Articles from PLOS ONE are provided here courtesy of PLOS

    RESOURCES