Abstract
Foggy weather brings lots of inconvenience for outdoor safety surveillance in the densely populated school education area. Research on image and video dehazing is able to solve this problem. Most existing methods recover the haze-free scenes relying on the atmospheric scattering model in image dehazing, which often suffer from halo artifacts because of the indistinct edges in the scene depth map. L0 gradient minimization is introduced to better preserve and locate important edges globally to optimize the scene depth map, making use of this physical model in this paper. Firstly, a rough scene depth map based on the inherent boundary constraint prior on the scene is estimated. Secondly, the rough scene depth map in bright regions is compensated with an adaptive term. Then this compensated scene depth map is put into an optimizing framework to get a refined depth map to make it closer to the ideal scene depth. Finally, with the refined depth map and global atmospheric light, we can recover the haze-free scenes using the atmospheric scatting model. Experimental results show the proposed is better to obtain haze-free scenes with sharp edges, abundant details and vivid color while dealing well with bright areas.
Introduction
Outdoor images are often contaminated by suspended atmospheric aerosols such as haze, fog, smoke and others. Therefore, the reflected light from objects, before it reaches the camera, is attenuated and absorbed by these particles in the atmosphere. As a result, contrast, color and visibility of images are drastically degraded, which makes it unable to meet the requirements of most image perception systems [10–12] and algorithms for surveillance, intelligent vehicles, object recognition, and target location. Foggy weather brings our daily life lots of inconvenience, especially for outdoor safety surveillance. In the densely populated school education area with weaker security management, outdoor supervision security risk exists brought by foggy weather. Thus, image and video dehazing becomes particularly important [18, 19].
The goal of image dehazing is to remove the weather effect caused by suspended atmospheric particles, alleviate loss of contrast and color distortion, and eventually make images more visible. Lots of techniques have been proposed to tackle this problem. In general, they can be categorized into two classes: one [1, 2] is the enhancement-based methods, which can significantly enhance contrast, enrich details, and improve visual quality of hazy images, but may also lead to a loss of salient details and unnatural color as they are not physical valid and cannot adaptively make improvements according to image characters. The other [3] is dedicated to recover the scene relying on the atmospheric scatting model. This restoration is based on image degradation mechanism and special for image haze removal, whose result images seem more natural and vivid. Meanwhile, it is better to process complex scenes and the details and structural information are preserved more completely.
Single image dehazing methods based on this physical model have been appealing enough in recent years thanks to its convenience of input image, adaptation of algorithm and its compelling results. However, this model-based restoration is severely ill-posed thus needs additional assumptions over the scene to tackle the problem. Considerable statistical priors have been explored for single image dehazing in previous work to recover haze-free scenes. In [22], a high-contrast prior on haze-free image, which assumes haze-free images have higher contrast than hazy ones, was proposed to maximize local contrast. Fattal [4] estimated the albedo of the scene and the medium transmission map on the assumption that transmission map and surface shading are statistically uncorrelated. In [9], Fattal used the color-line prior in natural images, where pixels of small image patches typically exhibit a one-dimensional distribution in RGB color space under assumptions, to restore the scene. He et al. [5] proposed the dark channel prior to roughly estimate the image depth map. This prior comes from a statistical observation that most local patches in haze-free images often contain some low intensity pixels.
Depth map and atmospheric light are the essential tasks of single image dehazing based on the physical model. Several optimized techniques have been investigated in recent work to estimate depth map making use of priors or constraints to remove haze. Nishino et al. [14] modeled the image with a factorial Markov random field to jointly estimate the scene albedo and depth map by levering their latent statistical structures. But, it needs more constraints to improve the accuracy. Carr [13] modeled geometry constraint and made the optimization work with the help of α-expansion method. However, edge information cannot be presented well in depth map because of its over-smoothing and local patch-based operation. Meng et al. [17] explored the inherent boundary constraint of the scene to obtain a rough estimation of scene depth map, which was then put into an optimization work making use of a weighted L1-norm regularization method. Reference [26] estimated the scene depth map using its proposed weighted guided image filter and the modified dark channel prior. However, its performance in preserving edged is not well because of its local operator. In general, as approaches cited above are more or less based on local patch-based operation, edges of scene depth can not estimated accurately, which inevitably leads to halo artifacts and ambiguous detail and edges in result haze-free scenes.
To overcome the above problems, we propose a single image dehazing method based on L0 gradient minimization to refine the scene depth map. The L0 gradient minimization [16], which preserves salient edges and structures in a global measure, can dramatically alleviate halo artifacts caused by local patches. Moreover, small-resolution objects and thin edges can be faithfully maintained. Because of its nature, we put the L0 gradient minimization into refining the depth map obtained from priors, which can efficiently preserve sharp edges and alleviate halo artifacts in result images that traditional methods suffered. Moreover, to address problems like halo artifacts, noise amplification and over-darkness in bright regions because of the undervalued scene depth, we introduce an adaptive term to compensate the scene depth obtained from the prior before putting it into the optimization framework using L0 gradient minimization. The global atmospheric light is obtained by optimizing method in [5]. Finally, we restore the image with the refined depth map and atmospheric light using this physical model. Extensive experiments demonstrate that the proposed is better able to recover scenes with sharp edges, abundant details and vivid color while dealing well with bright areas.
This paper is organized as follows. Section 1 discusses several image dehazing works and problems traditional methods suffered. Section 2 gives an instruction of the atmospheric scatting model and details the main work of the algorithm. In Section 3,we show some results on real images and make a comparison with several methods. A conclusion is provided in Section 4.
Single image dehazing based on L0 gradient minimization
Most of the methods are devoted to recover haze-free scenes relying on the atmospheric scattering model through estimating its scene depth map and atmospheric light. The proposed is also following this idea. Given a hazy image, a rough depth map is obtained based on the inherent boundary constraint on the haze scene. Then an adaptive compensation strategy is proposed to compensate the scene depth map in bright region. Next this compensated scene depth is modeled into an optimization function using the L0 gradient minimization to get the final refined depth map. Finally, with the refined scene depth and global atmospheric light, we recover haze-free scenes using the physical model. Figure 1 shows the framework of this algorithm.
Scene depth map based on the boundary constraint of the scene
The atmospheric scatting model [6–8] proposed by McCartney [21] and derived by Narasimhan [20], is described as:
Where x indexes the pixel of the observed hazy image
In (3), I
c
, A
c
, and are the color channels of
The captured images more or less suffer from noise in bright region, especially in sky region. Denoting the captured image noise as n, the noise magnitude is n/t. Since the obtained depth map in bright region is close to zero, differences of neighboring pixels or noise are amplified excessively, which severely degrade the result images. To deal with this issue, an adaptive compensation term Δt is introduced to slightly adjust the initial value of scene depth t
s
in bright region, given as Equations (5) and (6). After that, the brightness of the depth map in bright regions is enhanced independently.
In (5), stands for the adjusted depth map. id
x
is the coordinate of a pixel in bright region. It is detected by selecting pixel satisfying the condition |
For the depth map obtained from the scene boundary constraint and adjusted in bright regions, it contains too much detail and cannot stick out salient structures, which cannot reflect real depth information of the scene. As the effectiveness of L0 gradient minimization in sharpening major edges and its operation of globally locating edges, which can dramatically alleviates halo artifacts caused by local patches in most image dehazing algorithm, we put the L0 gradient minimization into an objective function to refine the adjusted scene depth obtained above, expressed as (7). Through minimizing (7), the refined scene depth map t (x) is obtained which can capture the sharp edge discontinuities and outline the profile of objects.
Where is the adjusted depth map under prior of boundary constraint. t (x) is the final refined depth map and C (t) denotes the algorithm of L0 norm, defined as counting the number of non-zero elements of the gradient field, where # is the counting operator, expressed as (8). λ is a parameter controlling the level of smoothness.
As C (t) in (7) contains the pixel-wise difference and global discontinuity, we adopt the half-quadratic method by introducing auxiliary variables (h, v) to approximate their corresponding gradients ∂x′t x , ∂y′t x respectively to solve this problem and rewrite the objective function (7) as (9):
Problem (9) is solved through alternatively minimizing (h, v) and t. The similarity between auxiliary variables (h, v) and ∂x′t x , ∂y′t x is controlled by parameter β, which is set as a small value 2λ at the beginning, multiplied by a constant κ each time, and finally ended when β is larger than 105. κ is set as 2 and λ as 0.03.
Computing t when h, v are fixed, the sub-problem is equal to (10) and the final result of t is (11):
Computing (h, v) when t is fixed, we can rewrite the sub-problem as (12) and the corresponding result is (13):
As we known, inaccurate estimation of the atmospheric light may result in inaccurate luminance and distorted color in result images [27]. In [5], the atmospheric light is estimated using dark channel prior with a fixed window size. But in some cases with large bright objects or multiple light sources, the global atmospheric light may be estimated troublesomely and inaccurately with a fixed window size, shown as the left image [5] in Fig. 2. We filter the dark channel image with a moving window w
x
which is set as 3% of the largest dimension of the gray-level image in most cases. Then pick the top 0.1% brightest pixels in the dark channel. Among these pixels, the pixel with highest intensity in the input hazy mage
With the atmospheric light and the refined scene depth map, we can recover the scene radiance according to (17):
Where ɛ is a small constant to avoiding division by zero, the exponent δ is used for fine-tuning the dehazing effects and set as 0.85.
To demonstrate the effectiveness of the proposed method, we select different types of outdoor images in our experiments.
Qualitative comparison
Figure 3 shows a comparison between results obtained by [17] and our algorithm. The first column are the hazy images, next are the results obtained by [17] and the proposed, followed by a zoom of the result images. The last column displays the corresponding depth map of these partial enlarged results.
As can be seen from the partial enlarged images of first and third line in Fig. 3, our algorithm is better able to keep sharp edges and remove haze than Meng’s method, which remains residual haze in and around these regions while our results do not. In the second line, considerable improved contrast and details have been got by [17] and our method. However, the proposed is superior to [17] in processing details of branches. This is mainly due to the fact that Meng’ method is based on a local patch measure which is one cause of halo artifacts. Our method is bases on the global smoothing measure of L0 gradient minimization, thus alleviate halo problems generated by local patch or average operation.
Quantitative comparison
Figures 4 and 5 further present comparisons against the classical and recent dehazing techniques. The blind measure of Hautière et al. [23], which consists in three indicators e, , Σ, is used to quantitative assess and rate these algorithms. Among these indicators, indicator e represents edges newly visible after restoration, the mean computes the ratio of gradient norms at visible edges, while Σ shows the percentage of pixels which are saturated (black or white) after restoration. In most cases, good performance is described by high values of e, and low values of Σ. In addition, in order to evaluate the degree of haze removal, we introduce an indicator D [24], which evaluates the perceptual fog density of images. The smaller the value of D is, the lower the degree of haze is, the better the performance of haze removal is. The quantitative comparison results are given in Tables 1 and 2.
In Fig. 4, we make comparisons between our method, and recent works such as Chio et al. [24] and He et al. [5]. From these images, we can see that Chio’s result often suffers from oversaturation, which can be seen from the value of Σ. Analyzing results of Table 1 in general, while all the methods yield nearly the same and small values of Σ, our method produces higher values of e, which shows that our algorithm outperforms than others in terms of contrast and visibility enhancement. Meanwhile, our value of D is always lower than others, which show the proposed method is more effective for removing haze.
Figure 5 shows comparisons of our method with several traditional dehazing algorithms: Fattal [4], He et al. [5] and Tarel et al. [25]. As can be seen, the result images produced by Tarel often seem oversaturated, over-dark and contain halo artifacts. Fattal’s results remain too much haze in general. Seen from Table 2, in most cases, our algorithm gives the relative big value of e and small value of Σ, which indicates that our algorithm enhances the contrast more efficiently and recovers much more details while does not contain too much saturated pixels. Moreover, for all the images, the value of D in our result images is the smallest, indicating that the degree of haze removal by the proposed is thorough and again demonstrating the efficiency and effectiveness of our algorithm in haze removal.
Conclusion
Single image dehazing is a challenging problem because of the unknown depth map. In this paper, we analyze the problems most existing methods suffered and propose a single image dehazing method based on L0 gradient minimization to refine the scene depth map. For halo artifacts caused by local measure and indistinct edges of scene depth, the L0 gradient minimization is applied to optimize the depth obtained from the prior because of its nature in sharping major edges and processing on a global measure. Moreover, small-resolution objects and thin edges can be faithfully maintained. In addition, thanks to the adaptive compensation term for the rough scene depth map obtained from the prior, the proposed can also deal well with bright regions. Our algorithm bring the school education surveillance great convenience and make a big difference in the field of image dehazing.
Footnotes
Acknowledgments
This research was supported partially by the National Natural Science Foundation of China (Nos. 61372130, 61432014, 61501349), the Fundamental Research Funds for the Central Universities (Nos. BDY081426, JB140214, XJS14042), the Program for New Scientific and Technological Star of Shaanxi Province (No. 2014KJXX-47).
