# A Novel Method of Adaptive Traffic Image Enhancement for Complex Environments

Authors: Cao Liu; Hong Zheng; Dian Yu; Xiaohang Xu
Journal: Journal of Sensors
 (2015)

---

## Abstract

There exist two main drawbacks for traffic images in classic image enhancement methods. First is the performance degradation that occurs under frontlight, backlight, and extremely dark conditions. The second drawback is complicated manual settings, such as transform functions and multiple parameter selection mechanisms. Thus, this paper proposes an effective and adaptive parameter optimization enhancement algorithm based on adaptive brightness baseline drift (ABBD) for color traffic images under different luminance conditions. This method consists of two parts: brightness baseline model acquisition and adaptive color image compensation. The brightness baseline model can be attained by analyzing changes in light along a timeline. The adaptive color image compensation involves color space remapping and adaptive compensation specific color components. Our experiments were tested on various traffic images under frontlight, backlight, and during nighttime. The experimental results show that the proposed method achieved better effects compared with other available methods under different luminance conditions, which also effectively reduced the influence of the weather.


---

## Body

## 1. Introduction

Video-based traffic surveillance has become essential in city management due to the rapid development of transportation. However, image sequences taken from surveillance systems display various properties in various environments, including frontlight, backlight, and extremely dark environments. These fluttering properties may reduce the surveillance quality and affect consequential detection processes, such as vehicle detection and vehicle plate recognition. As a result, the enhancement of traffic image sequences under complex environments plays a critical role in video-based surveillance.There are two tracks for this topic. One is image enhancement under certain conditions. Xu et al. [1] proposed methods that involved a denoiser and a tone mapper, which enhanced very dark image sequences in particular. Klaus and Warrant [2] proposed a theoretical biological model of visual systems in nocturnal animals to determine the optimum spatiotemporal receptive fields for vision in dim light. He et al. [3] presented an effective method using dark channel prior to remove haze from a single image. Tan [4] proposed a method that maximized the local contrast of the image in inclement weather, such as fog and haze. Im et al. [5] described a contrast enhancement method for backlit images that first extracted underexposed regions using the dark channel prior map and then performed spatially adaptive contrast enhancements. Tsai and Yeh [6] gave a contrast compensation method using fuzzy classification and image illumination analysis especially for backlit and front-lit color faces. All these proposals perform well under certain conditions.The other track involves the enhancement of images for certain objects. Yang [7] introduced a method that maximized the image contrast and then employed morphology processing for road sign recognition in natural scenes. The authors in [8] used normalization for local luminance to eliminate the impact of light changes so as to achieve the automatic detection and recognition of signs in natural scenes. In [9, 10], studies on license plate images in natural scenes were performed by means of histogram equalization and tensile contrast. In [11], Tan et al. employed the combination of high frequency enhancement and neural networks to strengthen the contrast in van images under different light conditions.Additionally, histogram equalization and its variations are one of the most commonly used algorithms to perform contrast enhancement due to its simplicity and effectiveness [12–16]. Recently, Wu and Juang [17] proposed a histogram extension method specifically for vehicle detection systems. Wu [18] proposed an image enhancement method via optimal contrast-tone mapping. Xu et al. [19] analyzed the relationships between image histograms and contrast enhancement/white balancing and then proposed a generalized equalization model for image enhancement.These research topics have contributed a great deal to improving image quality. However, as regards traffic images, these methods are not robust enough to deal with luminance changes during the course of a day or given the impact of extreme weather. In this paper, we have presented a new method to improve the quality of traffic surveillance images based on adaptive brightness baseline drift. In this method, the impacts of both brightness variation and time change have been considered simultaneously, and a brightness variation model has automatically obtained the parameters for enhancement. This method could remove the effects resulting from the impacts of both weather and light and could consequently produce satisfactory enhancement results under complex environments.The remainder of this paper is organized as follows. Section2 describes the proposed ABBD method. Section 3 presents the experimental results. Conclusions are finally drawn in Section 4, along with recommendations for future research.


## 2. Adaptive Brightness Baseline Drift

The traffic image enhancement approach discussed in this paper consists of two steps: brightness baseline model acquisition and adaptive image compensation based on such a model. Figure1 illustrates the proposed approach flow diagram. In the first step, the brightness baseline model was obtained by an offline brightness baseline curve and online brightness feedback. In the second step, the color image to be processed was initially transformed into an HSV color space in which the brightness component was adjusted according to the baseline value, and then the backward color transformation is applied to produce the enhanced image.Figure 1
The flow diagram of image enhancement based on ABBD.


### 2.1. Brightness Baseline Model Acquisition

Because brightness changes with time, the baseline model has been used to illustrate the overall trend of illumination; the model is comprised of two parts: the first part is brightness baseline analysis and compensation and the other is real-time brightness feedback.


#### 2.1.1. Brightness Baseline Analysis and Compensation

In order to precisely measure the illumination variations with time, two groups of images were obtained from a north-south intersection and an east-west intersection, respectively, in different light directions. The mean values of the brightness were calculated after certain intervals for both groups. The statistical result is illustrated in Figure2. It can be concluded from this figure that the mean brightness values do vary significantly over time. Therefore, a baseline of this value is proposed in this paper, and these baseline values form a brightness baseline curve.Figure 2
The mean brightness changes with time diagram.Define the brightness baseline value in timet as V, which is relatively invariable at night, since it is free from the impact of sunlight, while this value changes during daytime. The camera that faces north or south has the brightest surveillance image at noon but is much darker in the morning and in the evening. The change in brightness goes from low to high and then drops back to the low level. This process can be described as a Gaussian function during daytime and as a constant during nighttime in(1)
V
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
t
0
<
t
<
t
1
c
otherwise
,where l
0, t, t
μ, and σ are the brightness value during the brightest moment, the current moment, the mean value of this curve, and the standard deviation of the Gaussian function, respectively. Here, l
0 is set to 150, according to experiments, and t
μ
=
12.5. σ was chosen for this procedure: assume that daytime lasts from t
0 to t
1, and the interval (
μ
-
2.58
σ
,
μ
+
2.58
σ
) covers more than 99.7% of the area in the Gaussian distribution. Thus σ
=
(
t
1
-
t
0
)
/
(
2.58
×
2
). The constant c denotes the brightness value at night.Figure3 illustrates the condition for the camera facing east and west. When the luminance angle changes, frontlight and backlight occur. The image is bright under frontlight conditions, as is the area exposed to the direct light present in backlight images, but the area in shadow is dark. Figure 3(a) shows the relationship between camera orientation, the object, and the sun. The traffic image shows frontlight in the morning and backlight in the afternoon when the camera is facing west; the opposite occurs when it is facing east. Figures 3(b) and 3(c) give examples of the frontlight image and backlight image, respectively. The brightness histograms shown in Figures 3(d) and 3(e) can quantitatively depict brightness distributions.Figure 3
The sketch-map of camera facing east and west. (a) Relationship between camera orientation, the object, and the sun. (b) Frontlight image. (c) Backlight image. (d) Brightness histogram of (b). (e) Brightness histogram of (c).
(a)
(b)
(c)
(d)
(e)To move the range of the traffic image to a reasonable range of brightness, the entire brightness of the frontlight image should be reduced. For the backlight image, the brightness in the area exposed to direct sunlight should be reduced, while the brightness should be increased for those in the shadow. The vehicle plate and other useful information can be found in shadow, whereas highlighted areas are on the ground; under circumstance of backlight the brightness baseline value should be increased. Therefore, the brightness baseline value should be reduced in the morning and increased in the afternoon when the camera is facing west; the opposite should occur when facing east. Because the overall trend of illumination is slowly changing, the trigonometric function in the following equation is utilized to compensate the image:(2)
C
=
λ
sin
⁡
ω
t
-
t
s
,where λ is the compensation factor, which varies with the angle of the camera and seasons. Thus it is larger in summer because the backlight and frontlight are more intense, whereas the value is smaller during winter, when lighting is mild. This value is greater than zero when the camera is facing west, less than zero when facing east, and equal to zero when facing north and south. t
s indicates when the time compensation starts; t
e is when it ends. Then we have(3)
ω
=
2
π
t
e
-
t
s
.Therefore, the value of brightness baselineL after compensation at time t is equal to (4)
L
=
V
+
C
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
+
C
t
0
<
t
<
t
1
c
otherwise
,where V represents the brightness baseline in normal situations and C represents the compensated brightness. The curves of L and C are illustrated as shown in Figure 4. The red curve C
1 is the compensation brightness curve in frontlight while the blue curve C
2 is the compensation brightness curve in backlight. In contrast, the red curve L
1 stands for the baseline in frontlight and the blue curve L
2 stands for the baseline in backlight.Figure 4
Brightness baseline curve graphs.


#### 2.1.2. Real-Time Brightness Feedback

Considering that images taken at the same times differ under different weather and luminance conditions, it is not sufficient to confirm the brightness reference value solely by applying the brightness baseline curve. Therefore, a real-time feedback system was introduced to resolve this problem. First, the reference value was obtained from the brightness baseline curve,L
=
[
l
1
,
…
,
l
n
]. Next, the mean brightness of the real-time images was calculated as M
=
[
m
1
,
…
,
m
n
], along with the difference between the baselines, E
=
[
e
1
,
…
,
e
n
]. Defining the correction value for brightness, B
=
[
b
1
,
…
,
b
n
], we have (5)
E
=
M
-
L
,
B
=
η
E
,where η
=
[
η
1
,
…
,
η
n
] is the correction step; it takes the value between 0 and 1.However, in a real experiment, two frames in consequence may differ greatly due to violent changes in lightning and object movement. Therefore, the previous correction value, defined as the “inertia term,” was taken into consideration in the current experiment. Figure5 shows this process, where b
k stands for the correction value of the current frame and b
k
-
1 the previous frame, and α
k is the “inertia coefficients” that ranges from 0 to 1. Thus(6)
b
k
=
η
k
e
k
+
α
k
b
k
-
1
.Figure 5
Brightness feedback model graphs.The final brightness reference value, shown in the following equation, is composed of the value from the curve and the feedback value:(7)
L
B
=
L
+
B
.


### 2.2. Adaptive Color Image Compensation

After the reference value for brightness was attained, it was then used in the brightness histogram to enhance the image. In order to maintain the color, the color image must first be transformed into the HSV color space; the enhancing process is performed in the V component. The steps for image compensation are listed as follows.Firstly, the RGB image was transformed into the HSV color space, and the mean of brightnessm
p was calculated using (8)
m
p
=
∑
i
=
0
255
i
×
s
i
∑
i
=
0
255
s
i
,where i is the brightness value and s
(
i
) is the pixel count in brightness i.Secondly, the adaptive reference value for brightnessl was obtained by (7).Thirdly the histogram of brightness was shifted by|
m
p
-
l
|. Consequently, the drift coefficients α and β were calculated, using (9), where the two regions were separated by the brightness baseline.Then brightness transformation was processed in both regions using (10). Figure 6 is an example of adaptive image compensation, where the left area has a value from 0 to l, while the right one has a range from l to 255.Figure 6
Example of adaptive image compensation.Finally, the image was transformed back into the RGB color space:(9)
α
=
l
m
p
-
v
min
⁡
,
β
=
255
-
l
v
max
⁡
-
m
p
,
(10)
I
L
s
=
i
L
s
-
v
min
⁡
×
α
,
I
R
s
=
i
R
s
-
v
max
⁡
×
β
+
255
,where v
min
⁡ and v
max
⁡ are the minimum and maximum for the brightness, respectively. i
L
(
s
) is the brightness value that is less than the reference brightness and i
R
(
s
) is the value greater than the reference brightness. I
L
(
s
) and I
R
(
s
) are the corresponding values after the shift.


## 2.1. Brightness Baseline Model Acquisition

Because brightness changes with time, the baseline model has been used to illustrate the overall trend of illumination; the model is comprised of two parts: the first part is brightness baseline analysis and compensation and the other is real-time brightness feedback.


### 2.1.1. Brightness Baseline Analysis and Compensation

In order to precisely measure the illumination variations with time, two groups of images were obtained from a north-south intersection and an east-west intersection, respectively, in different light directions. The mean values of the brightness were calculated after certain intervals for both groups. The statistical result is illustrated in Figure2. It can be concluded from this figure that the mean brightness values do vary significantly over time. Therefore, a baseline of this value is proposed in this paper, and these baseline values form a brightness baseline curve.Figure 2
The mean brightness changes with time diagram.Define the brightness baseline value in timet as V, which is relatively invariable at night, since it is free from the impact of sunlight, while this value changes during daytime. The camera that faces north or south has the brightest surveillance image at noon but is much darker in the morning and in the evening. The change in brightness goes from low to high and then drops back to the low level. This process can be described as a Gaussian function during daytime and as a constant during nighttime in(1)
V
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
t
0
<
t
<
t
1
c
otherwise
,where l
0, t, t
μ, and σ are the brightness value during the brightest moment, the current moment, the mean value of this curve, and the standard deviation of the Gaussian function, respectively. Here, l
0 is set to 150, according to experiments, and t
μ
=
12.5. σ was chosen for this procedure: assume that daytime lasts from t
0 to t
1, and the interval (
μ
-
2.58
σ
,
μ
+
2.58
σ
) covers more than 99.7% of the area in the Gaussian distribution. Thus σ
=
(
t
1
-
t
0
)
/
(
2.58
×
2
). The constant c denotes the brightness value at night.Figure3 illustrates the condition for the camera facing east and west. When the luminance angle changes, frontlight and backlight occur. The image is bright under frontlight conditions, as is the area exposed to the direct light present in backlight images, but the area in shadow is dark. Figure 3(a) shows the relationship between camera orientation, the object, and the sun. The traffic image shows frontlight in the morning and backlight in the afternoon when the camera is facing west; the opposite occurs when it is facing east. Figures 3(b) and 3(c) give examples of the frontlight image and backlight image, respectively. The brightness histograms shown in Figures 3(d) and 3(e) can quantitatively depict brightness distributions.Figure 3
The sketch-map of camera facing east and west. (a) Relationship between camera orientation, the object, and the sun. (b) Frontlight image. (c) Backlight image. (d) Brightness histogram of (b). (e) Brightness histogram of (c).
(a)
(b)
(c)
(d)
(e)To move the range of the traffic image to a reasonable range of brightness, the entire brightness of the frontlight image should be reduced. For the backlight image, the brightness in the area exposed to direct sunlight should be reduced, while the brightness should be increased for those in the shadow. The vehicle plate and other useful information can be found in shadow, whereas highlighted areas are on the ground; under circumstance of backlight the brightness baseline value should be increased. Therefore, the brightness baseline value should be reduced in the morning and increased in the afternoon when the camera is facing west; the opposite should occur when facing east. Because the overall trend of illumination is slowly changing, the trigonometric function in the following equation is utilized to compensate the image:(2)
C
=
λ
sin
⁡
ω
t
-
t
s
,where λ is the compensation factor, which varies with the angle of the camera and seasons. Thus it is larger in summer because the backlight and frontlight are more intense, whereas the value is smaller during winter, when lighting is mild. This value is greater than zero when the camera is facing west, less than zero when facing east, and equal to zero when facing north and south. t
s indicates when the time compensation starts; t
e is when it ends. Then we have(3)
ω
=
2
π
t
e
-
t
s
.Therefore, the value of brightness baselineL after compensation at time t is equal to (4)
L
=
V
+
C
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
+
C
t
0
<
t
<
t
1
c
otherwise
,where V represents the brightness baseline in normal situations and C represents the compensated brightness. The curves of L and C are illustrated as shown in Figure 4. The red curve C
1 is the compensation brightness curve in frontlight while the blue curve C
2 is the compensation brightness curve in backlight. In contrast, the red curve L
1 stands for the baseline in frontlight and the blue curve L
2 stands for the baseline in backlight.Figure 4
Brightness baseline curve graphs.


### 2.1.2. Real-Time Brightness Feedback

Considering that images taken at the same times differ under different weather and luminance conditions, it is not sufficient to confirm the brightness reference value solely by applying the brightness baseline curve. Therefore, a real-time feedback system was introduced to resolve this problem. First, the reference value was obtained from the brightness baseline curve,L
=
[
l
1
,
…
,
l
n
]. Next, the mean brightness of the real-time images was calculated as M
=
[
m
1
,
…
,
m
n
], along with the difference between the baselines, E
=
[
e
1
,
…
,
e
n
]. Defining the correction value for brightness, B
=
[
b
1
,
…
,
b
n
], we have (5)
E
=
M
-
L
,
B
=
η
E
,where η
=
[
η
1
,
…
,
η
n
] is the correction step; it takes the value between 0 and 1.However, in a real experiment, two frames in consequence may differ greatly due to violent changes in lightning and object movement. Therefore, the previous correction value, defined as the “inertia term,” was taken into consideration in the current experiment. Figure5 shows this process, where b
k stands for the correction value of the current frame and b
k
-
1 the previous frame, and α
k is the “inertia coefficients” that ranges from 0 to 1. Thus(6)
b
k
=
η
k
e
k
+
α
k
b
k
-
1
.Figure 5
Brightness feedback model graphs.The final brightness reference value, shown in the following equation, is composed of the value from the curve and the feedback value:(7)
L
B
=
L
+
B
.


## 2.1.1. Brightness Baseline Analysis and Compensation

In order to precisely measure the illumination variations with time, two groups of images were obtained from a north-south intersection and an east-west intersection, respectively, in different light directions. The mean values of the brightness were calculated after certain intervals for both groups. The statistical result is illustrated in Figure2. It can be concluded from this figure that the mean brightness values do vary significantly over time. Therefore, a baseline of this value is proposed in this paper, and these baseline values form a brightness baseline curve.Figure 2
The mean brightness changes with time diagram.Define the brightness baseline value in timet as V, which is relatively invariable at night, since it is free from the impact of sunlight, while this value changes during daytime. The camera that faces north or south has the brightest surveillance image at noon but is much darker in the morning and in the evening. The change in brightness goes from low to high and then drops back to the low level. This process can be described as a Gaussian function during daytime and as a constant during nighttime in(1)
V
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
t
0
<
t
<
t
1
c
otherwise
,where l
0, t, t
μ, and σ are the brightness value during the brightest moment, the current moment, the mean value of this curve, and the standard deviation of the Gaussian function, respectively. Here, l
0 is set to 150, according to experiments, and t
μ
=
12.5. σ was chosen for this procedure: assume that daytime lasts from t
0 to t
1, and the interval (
μ
-
2.58
σ
,
μ
+
2.58
σ
) covers more than 99.7% of the area in the Gaussian distribution. Thus σ
=
(
t
1
-
t
0
)
/
(
2.58
×
2
). The constant c denotes the brightness value at night.Figure3 illustrates the condition for the camera facing east and west. When the luminance angle changes, frontlight and backlight occur. The image is bright under frontlight conditions, as is the area exposed to the direct light present in backlight images, but the area in shadow is dark. Figure 3(a) shows the relationship between camera orientation, the object, and the sun. The traffic image shows frontlight in the morning and backlight in the afternoon when the camera is facing west; the opposite occurs when it is facing east. Figures 3(b) and 3(c) give examples of the frontlight image and backlight image, respectively. The brightness histograms shown in Figures 3(d) and 3(e) can quantitatively depict brightness distributions.Figure 3
The sketch-map of camera facing east and west. (a) Relationship between camera orientation, the object, and the sun. (b) Frontlight image. (c) Backlight image. (d) Brightness histogram of (b). (e) Brightness histogram of (c).
(a)
(b)
(c)
(d)
(e)To move the range of the traffic image to a reasonable range of brightness, the entire brightness of the frontlight image should be reduced. For the backlight image, the brightness in the area exposed to direct sunlight should be reduced, while the brightness should be increased for those in the shadow. The vehicle plate and other useful information can be found in shadow, whereas highlighted areas are on the ground; under circumstance of backlight the brightness baseline value should be increased. Therefore, the brightness baseline value should be reduced in the morning and increased in the afternoon when the camera is facing west; the opposite should occur when facing east. Because the overall trend of illumination is slowly changing, the trigonometric function in the following equation is utilized to compensate the image:(2)
C
=
λ
sin
⁡
ω
t
-
t
s
,where λ is the compensation factor, which varies with the angle of the camera and seasons. Thus it is larger in summer because the backlight and frontlight are more intense, whereas the value is smaller during winter, when lighting is mild. This value is greater than zero when the camera is facing west, less than zero when facing east, and equal to zero when facing north and south. t
s indicates when the time compensation starts; t
e is when it ends. Then we have(3)
ω
=
2
π
t
e
-
t
s
.Therefore, the value of brightness baselineL after compensation at time t is equal to (4)
L
=
V
+
C
=
l
0
exp
⁡
⁡
-
t
-
t
μ
2
2
σ
2
+
C
t
0
<
t
<
t
1
c
otherwise
,where V represents the brightness baseline in normal situations and C represents the compensated brightness. The curves of L and C are illustrated as shown in Figure 4. The red curve C
1 is the compensation brightness curve in frontlight while the blue curve C
2 is the compensation brightness curve in backlight. In contrast, the red curve L
1 stands for the baseline in frontlight and the blue curve L
2 stands for the baseline in backlight.Figure 4
Brightness baseline curve graphs.


## 2.1.2. Real-Time Brightness Feedback

Considering that images taken at the same times differ under different weather and luminance conditions, it is not sufficient to confirm the brightness reference value solely by applying the brightness baseline curve. Therefore, a real-time feedback system was introduced to resolve this problem. First, the reference value was obtained from the brightness baseline curve,L
=
[
l
1
,
…
,
l
n
]. Next, the mean brightness of the real-time images was calculated as M
=
[
m
1
,
…
,
m
n
], along with the difference between the baselines, E
=
[
e
1
,
…
,
e
n
]. Defining the correction value for brightness, B
=
[
b
1
,
…
,
b
n
], we have (5)
E
=
M
-
L
,
B
=
η
E
,where η
=
[
η
1
,
…
,
η
n
] is the correction step; it takes the value between 0 and 1.However, in a real experiment, two frames in consequence may differ greatly due to violent changes in lightning and object movement. Therefore, the previous correction value, defined as the “inertia term,” was taken into consideration in the current experiment. Figure5 shows this process, where b
k stands for the correction value of the current frame and b
k
-
1 the previous frame, and α
k is the “inertia coefficients” that ranges from 0 to 1. Thus(6)
b
k
=
η
k
e
k
+
α
k
b
k
-
1
.Figure 5
Brightness feedback model graphs.The final brightness reference value, shown in the following equation, is composed of the value from the curve and the feedback value:(7)
L
B
=
L
+
B
.


## 2.2. Adaptive Color Image Compensation

After the reference value for brightness was attained, it was then used in the brightness histogram to enhance the image. In order to maintain the color, the color image must first be transformed into the HSV color space; the enhancing process is performed in the V component. The steps for image compensation are listed as follows.Firstly, the RGB image was transformed into the HSV color space, and the mean of brightnessm
p was calculated using (8)
m
p
=
∑
i
=
0
255
i
×
s
i
∑
i
=
0
255
s
i
,where i is the brightness value and s
(
i
) is the pixel count in brightness i.Secondly, the adaptive reference value for brightnessl was obtained by (7).Thirdly the histogram of brightness was shifted by|
m
p
-
l
|. Consequently, the drift coefficients α and β were calculated, using (9), where the two regions were separated by the brightness baseline.Then brightness transformation was processed in both regions using (10). Figure 6 is an example of adaptive image compensation, where the left area has a value from 0 to l, while the right one has a range from l to 255.Figure 6
Example of adaptive image compensation.Finally, the image was transformed back into the RGB color space:(9)
α
=
l
m
p
-
v
min
⁡
,
β
=
255
-
l
v
max
⁡
-
m
p
,
(10)
I
L
s
=
i
L
s
-
v
min
⁡
×
α
,
I
R
s
=
i
R
s
-
v
max
⁡
×
β
+
255
,where v
min
⁡ and v
max
⁡ are the minimum and maximum for the brightness, respectively. i
L
(
s
) is the brightness value that is less than the reference brightness and i
R
(
s
) is the value greater than the reference brightness. I
L
(
s
) and I
R
(
s
) are the corresponding values after the shift.


## 3. Experimental Results

### 3.1. Effectiveness of Traffic Image Enhancement

In order to testify the effectiveness of this enhancement method, the experiments were conducted at one crossroad in Hubei province, China. As a result, frontlight images at 11 h, backlight images at 16 h, and images at 21 h were randomly selected among the samples. The methods in [1–6] only focused on certain environments, and [13–16] aimed at detecting certain objects; the two latest and typical enhancement methods that are effective under different luminance conditions, histogram extension [17] and ESIHE [16], were employed as comparisons.Figure7(a) is the original frontlight image, which is considerably bright because of the intense sunlight and the installation angle of the camera. Figure 7(b) is the image enhanced by our method, while Figures 7(c) and 7(d) are the results of histogram extension and ESIHE, respectively. From these figures, it can be concluded that the proposed method could reduce the entire brightness while increasing the contrast at the same time. The color of the vehicles and the ground processed by our method is superior to other comparison methods in visual perception. For the purpose of strengthening details, Figures 7(e) and 7(f) show the amplified images of the red rectangle areas. In comparison with other methods, our proposed method enjoys significant reduction of exposure and a wider range of brightness.Figure 7
Enhancement result for frontlight image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)Figure8(a) is the original backlight image; most of the areas are extremely bright except for those in shadow. Figure 8(b) is the image enhanced by our method, which has a smoother transition in the area where brightness and shadow meet; moreover, there is less road texture and better contrast in shadow area. For example, the vehicle plate and other features become clearer. Figures 8(c) and 8(d) show the results of the histogram extension and ESIHE. As can be observed, the histogram extension method barely changed the brightness value, and ESIHE method had a limited effect on this occasion. Observed from Figures 8(e) and 8(f), the vehicle detail is enhanced in shadow, and thus a better visual effect has been fulfilled.Figure 8
Enhancement result for backlight image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)Figure9(a) is the original image during nighttime. The vehicle is too dark to be observed. Figure 9(b) is the result processed by our method, which illustrates clear details without causing distortion. Figures 9(c) and 9(d) are the histogram extension and ESIHE results. Even though the former increased the brightness, it added a severe block-effect, while the ESIHE enhanced the contract but meanwhile brought in more noise. Figures 9(e) and 9(f) indicate again that our method augments the contract without causing overexposure in the vehicle lamp and vehicle plate area.Figure 9
Enhancement result for dark image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)


### 3.2. Experimental Results for Eliminating Effects of Weather

The quality of traffic surveillance videos can be greatly affected by environment change, which results in reduced precision in vehicle detection and plate recognition. Experiments were conducted to demonstrate that ABBD is a method that eliminates the effects of weather impact, with samples collected every 10 h, 12 h, 16 h, and 21 h on sunny days (S), rainy days (R), and cloudy days (C), respectively. The root mean square error (RMSE) [17] and absolute mean brightness error (AMBE) [14] in the following equations, respectively, were employed to measure the differences between the two images with different sceneries:(11)
RMSE
=
1
M
N
∑
x
=
0
M
-
1
∑
y
=
0
N
-
1
f
1
x
,
y
-
f
2
x
,
y
2
,
(12)
AMBE
=
E
f
1
-
E
f
2
,where f
1
(
x
,
y
) and f
2
(
x
,
y
) are defined as the pixel value at (
x
,
y
) in images f
1 and f
2. M and N stand for the height and width of such images. E
f
1 and E
f
2 are the mean values of the image. Table 1 lists the RMSE result for each sample by applying ABBD, HE, and ESIHE. The corresponding AMBE is listed in Table 2.Table 1
Comparison of the RMSE of images under various weather conditions.
Scene
Original
ABBD
HE
ESIHE
S
R
C
S
R
C
S
R
C
S
R
C
10 h
S
0
16.5
37.2
0
9.6
25.2
0
10.1
26.5
0
20.2
28.3
R
16.5
0
48.1
9.6
0
26.5
10.1
0
28.1
20.2
0
43.7
C
37.2
48.1
0
25.2
26.5
0
26.5
28.1
0
28.3
43.7
0
12 h
S
0
20.2
21.6
0
11.6
9.3
0
10.1
13.0
0
22.7
22.3
R
20.2
0
38.2
11.6
0
16.7
10.1
0
18.0
22.7
0
41.0
C
21.6
38.2
0
9.3
16.7
0
13.0
18.0
0
22.3
41.0
0
16 h
S
0
19.0
23.1
0
13.5
6.7
0
11.6
17.9
0
21.0
11.8
R
19.0
0
35.6
13.5
0
15.7
11.6
0
21.9
21.0
0
30.2
C
23.1
35.6
0
6.7
15.7
0
17.9
21.9
0
11.8
30.2
0
21 h
S
0
13.0
4.2
0
8.0
3.8
0
20.0
9.9
0
26.7
11.7
R
13.0
0
16.5
8.0
0
10.1
20.0
0
25.2
26.7
0
33.0
C
4.2
16.5
0
3.8
10.1
0
9.9
25.2
0
11.7
33.0
0Table 2
Comparison of the AMBE of images under various weather conditions.
Scene
Original
ABBD
HE
ESIHE
S
R
C
S
R
C
S
R
C
S
R
C
10 h
S
0
12.6
34.8
0
4.3
15.9
0
4.7
16.8
0
13.4
25.2
R
12.6
0
47.5
4.3
0
20.2
4.7
0
21.5
13.4
0
38.5
C
34.8
47.5
0
15.9
20.2
0
16.8
21.5
0
25.2
38.5
0
12 h
S
0
18.0
20.0
0
7.8
5.1
0
7.0
7.5
0
17.6
19.0
R
18.0
0
37.5
7.8
0
12.9
7.0
0
14.4
17.6
0
36.7
C
20.0
37.5
0
5.1
12.9
0
7.5
14.4
0
19.0
36.7
0
16 h
S
0
15.2
19.6
0
9.2
2.6
0
8.0
10.6
0
15.8
8.6
R
15.2
0
34.8
9.2
0
11.7
8.0
0
18.6
15.8
0
24.4
C
19.6
34.8
0
2.6
11.7
0
10.6
18.6
0
8.6
24.4
0
21 h
S
0
12.0
3.7
0
3.1
2.3
0
6.6
6.2
0
13.6
9.1
R
12.0
0
15.6
3.1
0
5.4
6.6
0
12.8
13.6
0
22.7
C
3.7
15.6
0
2.3
5.4
0
6.2
12.8
0
9.1
22.7
0It can be concluded from Table1 that the RMSE varies at the same times under different weather conditions; however, the RMSE was reduced after our method was implemented and produced the lowest RMSE for all images. The HE method, which could reduce original RMSE values, had RMSE values higher than the proposed method. The ESIHE method seldom cut down the RMSE values.Table2 shows the absolute difference between images under different weather conditions. The less the value was, the greater the similarities between the images were. The AMBE values of the HE and ESIHE methods for all the images were higher than the AMBE value of the proposed method; therefore, our method proved effective in diminishing the absolute average brightness difference.Based on the experimental results, the weather effects were significantly reduced from all the source images. These results benefit processes such as moving object segments, vehicle detection, and plate recognition. Moreover, the parameters set for the surveillance system could be simplified, and better robustness could be achieved in complex environments.


## 3.1. Effectiveness of Traffic Image Enhancement

In order to testify the effectiveness of this enhancement method, the experiments were conducted at one crossroad in Hubei province, China. As a result, frontlight images at 11 h, backlight images at 16 h, and images at 21 h were randomly selected among the samples. The methods in [1–6] only focused on certain environments, and [13–16] aimed at detecting certain objects; the two latest and typical enhancement methods that are effective under different luminance conditions, histogram extension [17] and ESIHE [16], were employed as comparisons.Figure7(a) is the original frontlight image, which is considerably bright because of the intense sunlight and the installation angle of the camera. Figure 7(b) is the image enhanced by our method, while Figures 7(c) and 7(d) are the results of histogram extension and ESIHE, respectively. From these figures, it can be concluded that the proposed method could reduce the entire brightness while increasing the contrast at the same time. The color of the vehicles and the ground processed by our method is superior to other comparison methods in visual perception. For the purpose of strengthening details, Figures 7(e) and 7(f) show the amplified images of the red rectangle areas. In comparison with other methods, our proposed method enjoys significant reduction of exposure and a wider range of brightness.Figure 7
Enhancement result for frontlight image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)Figure8(a) is the original backlight image; most of the areas are extremely bright except for those in shadow. Figure 8(b) is the image enhanced by our method, which has a smoother transition in the area where brightness and shadow meet; moreover, there is less road texture and better contrast in shadow area. For example, the vehicle plate and other features become clearer. Figures 8(c) and 8(d) show the results of the histogram extension and ESIHE. As can be observed, the histogram extension method barely changed the brightness value, and ESIHE method had a limited effect on this occasion. Observed from Figures 8(e) and 8(f), the vehicle detail is enhanced in shadow, and thus a better visual effect has been fulfilled.Figure 8
Enhancement result for backlight image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)Figure9(a) is the original image during nighttime. The vehicle is too dark to be observed. Figure 9(b) is the result processed by our method, which illustrates clear details without causing distortion. Figures 9(c) and 9(d) are the histogram extension and ESIHE results. Even though the former increased the brightness, it added a severe block-effect, while the ESIHE enhanced the contract but meanwhile brought in more noise. Figures 9(e) and 9(f) indicate again that our method augments the contract without causing overexposure in the vehicle lamp and vehicle plate area.Figure 9
Enhancement result for dark image. (a) Original. (b) Proposed image. (c) Histogram extension image. (d) ESIHE image. (e) Cropped and enlarged results of (a). (f) Cropped and enlarged results of (b). (g) Cropped and enlarged results of (c). (h) Cropped and enlarged results of (d).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)


## 3.2. Experimental Results for Eliminating Effects of Weather

The quality of traffic surveillance videos can be greatly affected by environment change, which results in reduced precision in vehicle detection and plate recognition. Experiments were conducted to demonstrate that ABBD is a method that eliminates the effects of weather impact, with samples collected every 10 h, 12 h, 16 h, and 21 h on sunny days (S), rainy days (R), and cloudy days (C), respectively. The root mean square error (RMSE) [17] and absolute mean brightness error (AMBE) [14] in the following equations, respectively, were employed to measure the differences between the two images with different sceneries:(11)
RMSE
=
1
M
N
∑
x
=
0
M
-
1
∑
y
=
0
N
-
1
f
1
x
,
y
-
f
2
x
,
y
2
,
(12)
AMBE
=
E
f
1
-
E
f
2
,where f
1
(
x
,
y
) and f
2
(
x
,
y
) are defined as the pixel value at (
x
,
y
) in images f
1 and f
2. M and N stand for the height and width of such images. E
f
1 and E
f
2 are the mean values of the image. Table 1 lists the RMSE result for each sample by applying ABBD, HE, and ESIHE. The corresponding AMBE is listed in Table 2.Table 1
Comparison of the RMSE of images under various weather conditions.
Scene
Original
ABBD
HE
ESIHE
S
R
C
S
R
C
S
R
C
S
R
C
10 h
S
0
16.5
37.2
0
9.6
25.2
0
10.1
26.5
0
20.2
28.3
R
16.5
0
48.1
9.6
0
26.5
10.1
0
28.1
20.2
0
43.7
C
37.2
48.1
0
25.2
26.5
0
26.5
28.1
0
28.3
43.7
0
12 h
S
0
20.2
21.6
0
11.6
9.3
0
10.1
13.0
0
22.7
22.3
R
20.2
0
38.2
11.6
0
16.7
10.1
0
18.0
22.7
0
41.0
C
21.6
38.2
0
9.3
16.7
0
13.0
18.0
0
22.3
41.0
0
16 h
S
0
19.0
23.1
0
13.5
6.7
0
11.6
17.9
0
21.0
11.8
R
19.0
0
35.6
13.5
0
15.7
11.6
0
21.9
21.0
0
30.2
C
23.1
35.6
0
6.7
15.7
0
17.9
21.9
0
11.8
30.2
0
21 h
S
0
13.0
4.2
0
8.0
3.8
0
20.0
9.9
0
26.7
11.7
R
13.0
0
16.5
8.0
0
10.1
20.0
0
25.2
26.7
0
33.0
C
4.2
16.5
0
3.8
10.1
0
9.9
25.2
0
11.7
33.0
0Table 2
Comparison of the AMBE of images under various weather conditions.
Scene
Original
ABBD
HE
ESIHE
S
R
C
S
R
C
S
R
C
S
R
C
10 h
S
0
12.6
34.8
0
4.3
15.9
0
4.7
16.8
0
13.4
25.2
R
12.6
0
47.5
4.3
0
20.2
4.7
0
21.5
13.4
0
38.5
C
34.8
47.5
0
15.9
20.2
0
16.8
21.5
0
25.2
38.5
0
12 h
S
0
18.0
20.0
0
7.8
5.1
0
7.0
7.5
0
17.6
19.0
R
18.0
0
37.5
7.8
0
12.9
7.0
0
14.4
17.6
0
36.7
C
20.0
37.5
0
5.1
12.9
0
7.5
14.4
0
19.0
36.7
0
16 h
S
0
15.2
19.6
0
9.2
2.6
0
8.0
10.6
0
15.8
8.6
R
15.2
0
34.8
9.2
0
11.7
8.0
0
18.6
15.8
0
24.4
C
19.6
34.8
0
2.6
11.7
0
10.6
18.6
0
8.6
24.4
0
21 h
S
0
12.0
3.7
0
3.1
2.3
0
6.6
6.2
0
13.6
9.1
R
12.0
0
15.6
3.1
0
5.4
6.6
0
12.8
13.6
0
22.7
C
3.7
15.6
0
2.3
5.4
0
6.2
12.8
0
9.1
22.7
0It can be concluded from Table1 that the RMSE varies at the same times under different weather conditions; however, the RMSE was reduced after our method was implemented and produced the lowest RMSE for all images. The HE method, which could reduce original RMSE values, had RMSE values higher than the proposed method. The ESIHE method seldom cut down the RMSE values.Table2 shows the absolute difference between images under different weather conditions. The less the value was, the greater the similarities between the images were. The AMBE values of the HE and ESIHE methods for all the images were higher than the AMBE value of the proposed method; therefore, our method proved effective in diminishing the absolute average brightness difference.Based on the experimental results, the weather effects were significantly reduced from all the source images. These results benefit processes such as moving object segments, vehicle detection, and plate recognition. Moreover, the parameters set for the surveillance system could be simplified, and better robustness could be achieved in complex environments.


## 4. Conclusions

This paper proposed a new method based on adaptive brightness baseline drift for traffic image enhancement. First, changes in lighting were analyzed and then an adaptive model was applied. After the modeling, a nonlinear enhancement method was processed onto the image. The performance analysis indicated that our method achieved better effects compared with other available methods under different luminance conditions and could effectively reduce the influence of the weather. In our further work, we will continue to optimize this method, especially as regards evening performance; moreover, we will apply this method to vehicle detection and license plate recognition.



---

*Source: 516326-2015-04-28.xml*