Abstract
Wireless multimedia sensor networks have recently emerged as one of the most important technologies to actively perceive physical world and empower a wide spectrum of potential applications in various areas. Due to the advantages of rapid deployment, flexible networking, and multimedia information perceiving, wireless multimedia sensor networks are suitable for transmitting mass multimedia data such as audio, video, and images. Two-dimensional images are among the nuclear ways to convey certain information, and there exists a large number of image data to be processed and transmitted; however, the complexity of environment and the instability of sensing component both can give rise to the insignificant information of the resulted images. Hence, image processing attracts a lot of research concerns in last several decades. Our concern in this article is filtering technology on image signal. Filtering is shown to be a key technique to ensure the validity and reliability of the wireless multimedia sensor networks images, which aims to preserve salient edges and remove low-amplitude structures. The well-known L0 gradient minimization employs L0 norm as gradient sparsity prior, and it is capable of preserving sharp edges. Similar to the total variation model, L0 gradient minimization may easily suffer from the staircase effect and even lose part of the structure. Therefore, in this article, we propose an edge-preserving filter with adaptive L0 gradient optimization. Different from original L0 gradient minimization, we introduce an adaptive L0 regularization. The newly proposed adaptive function is feature-driven and makes the utmost of the image gradient, enabling the filter to remove low-amplitude structures and preserve key edges. Furthermore, the proposed filter can effectively avoid staircase effect and is robust to noise. We develop an efficient optimization algorithm to solve the proposed model based on alternating minimization. Through extensive experiments, our method shows many attractive properties like preserving meaningful edges, avoiding staircase effect, robustness to noise, and so on. Applications including noise reduction, clip-art compression artifact removal, detail enhancement and edge extraction, image abstraction and pencil sketching, and high dynamic range tone mapping further demonstrate the effectiveness of the proposed method.
Introduction
Wireless multimedia sensor networks (WMSNs) are composed of a large number of wirelessly interconnected sensor nodes equipped with multimedia devices, which can support the multimedia data collection, processing, and transmission. 1 The introduction of inexpensive CCD cameras and CMOS sensors has made it possible to transmit multimedia data and to foster the development of WMSNs.2,3 They are evolved from the traditional wireless sensor networks (WSNs) gradually and have extensive utilization fields, such as multimedia surveillance sensor networks, environmental monitoring, advanced health care delivery, and traffic congestion control. 4 WMSNs have been successfully applied in monitoring system, but still face challenges in the video image processing. Due to the limitations of the monitoring environment and the technological conditions of WMSNs, the monitoring system may generate unsatisfied video images in practice. The instability of the image quality leads to some difficulties in identification, forensics, and incident analysis. This means such video images are unreliable. Therefore, researches on image filtering and processing, aiming to obtain clear images with sharp edge and good visual impression, are of great significance. Generally, the output video images of WMSNs are diverse and need various techniques for different practice purposes.
The relevant tasks mainly belong to computer vision community, including but not limited to image denoising, detail enhancement, edge extraction, and high dynamic range (HDR) mapping. Most of these tasks involve the essential image filtering technology. Images usually contain rich well-structured information, such as edges. How to effectively diminish salient edges from meaningless details is a key problem in image processing. Edge-preserving filters have been proposed in favor of their validity to image structures, thus becoming the fundamental tools in a wide range of applications. Actually, the edge-preserving filters are extremely useful for characterizing and enhancing image edges. An image can also be decomposed into structural and detailed elements by edge-preserving filter. Recently, numerous edge-preserving filters have been proposed via different strategies and these filters have the same purpose of removing weak edges while preserving strong ones.
Most early proposed image filters are widely employed to reduce noise and/or extract useful image structures. Bilateral filter (BF)
5
is well applicable for removing noise-like structures and extracting details at a fine-spatial scale. While this filter is effective in many situations, it may generate gradient reversal artifacts6–8 near the edges. The efficiency is also a problem especially when the kernel radius is large. To overcome the limitation of gradient reversal, guided filter (GF) has been proposed; this filter performs better near edges without generating gradient reversal artifacts. However, halo artifacts may be introduced in the filter output. The weighted least squares (WLS) filter
8
is a robust method with flexible optimization framework. While this method often generates high-quality results with halo-free, it comes with the price of long computational time. Total variation (TV)
9
is another type of edge-preserving regularization. Recently, various TV-based models10–14 have been developed and achieve better results in a great variety of computer vision; these TV models have the common limitation of staircase effect. Moreover, as the improvement of the classical TV method,
9
Motivated by the success of the
We propose a novel energy function using
We introduce an additional pre-smoothing step to smooth the gradient of the input image, which helps effectively avoid intermediate errors introduced during the alternate iteration. This pre-smoothing step is critical to avoid staircase effect.
Our method shows many attractive properties, for example, robustness to noise, avoiding staircase effect, preserving meaningful edges, avoiding visual artifacts. And our method helps efficiently empower applications like noise reduction, clip-art compression artifact removal, detail enhancement and edge extraction, image abstraction and pencil sketching, HDR tone mapping, and so on.
Related work
There are lots of researches on image processing technology of the WMSNs images and filtering is the foundation of image processing. In this section, we discuss some commonly used image filters.
Two main branches of edge-preserving image filters are average-based filters and optimization-based approaches. Average-based filtering methods process images through weighted average, which define different types of affinity between neighboring pixel pairs by considering intensity difference. The popular BF 5 together and its extensions6,17–20 belong to the category of average-based filtering. The key point of BF is to average the neighbor pixels by computing weights based on information of both spatial and range domain. BF can effectively preserve sharp edges and flatten small details. BF has benefited a wide range of applications, for example, image denoising, 21 image abstraction, 22 detail decomposition, 23 and image defogging. 24 Inevitably, BF may generate the gradient reversal artifacts near the edges. Another commonly used average-based filter is anisotropic diffusion. 25 It employs an edge-stopping technique to avoid smoothing strong edges. Based on the assumption that the filtered output is a local linear transformation of the guidance image, GF 26 is proposed. While GF has similar edge-preserving capability with BF, it can further generate artifact-free results. These average-based filters have the same limitation that edges or structures may be blurred or destroyed.
Optimization-based approaches often optimize energy functions to constrain the filtered output to be as smooth as possible except where large gradients exist in the input image, such as TV.
9
The classical TV method
9
penalizes large gradient magnitudes by utilizing
Adaptive and sparse L0 gradient optimization
We will first briefly review the
L 0 gradient minimization
The
where U is the input image, S is the desired output,
where
As the
Adaptive L0 gradient minimization model
In this article, we propose an adaptive optimization-based image filter and employ an adaptive local function
where
where
We point out that the map r is proposed by Xu and Jia 34 to preserve salient edges and remove some narrow strips. As analyzed in Xu and Jia, 34 a large value of r indicates that there exist strong image structures in the local window, whereas a small value of r indicates that the area is flat.
Optimization
It is difficult to solve the energy function in equation (3) as it involves a hybrid norm. We use alternating minimization proposed by Wang et al.
16
to solve in equation (3). By introducing new auxiliary variables
where
Solving S
As equation (6) is a least squares problem, we can obtain its closed-form solution based on the convolution theorem of Fourier transformations. By utilizing the fast Fourier transformation (FFT) to speed up the whole process, the closed-form solution of equation (6) is
where
Solving
Given S, we can solve equation (7) by matrix calculus. Similar to Wang et al., 16 the solver of equation (7) can be given by
where
Solving h
Problem (8) can be solved by
where
The shrinkage formula is utilized to obtain the closed-form solution h, which is given by
Solving v
Similarly, a smooth version of
where
The shrinkage formula is utilized to obtain the closed-form solution v, which is given by
Algorithm 1 summarizes the proposed alternating minimization algorithm.
Analysis and discussion
In this section, we provide more insights and analysis on how the proposed algorithm performs on image filtering and demonstrate the function of each component of the algorithm separately.
Local weighted function
The regularization term usually plays a critical role in the optimization-based filtering methods. In this article, we propose an adaptive regularization, which involves an adaptive function

The visualization of (b) r map and (c) adaptive weight function
In the proposed method, the adaptive function

The function of
Moreover, we find that

Comparisons of various smoothing methods on a 1D signal. Black curves represent the noisy input; red curves represent the smoothing results. (a) Input noisy 1D signal. (b) Without computing
The effectiveness of pre-smoothing
In the proposed method, we use

The effectiveness of pre-smoothing. (a) Input image. (b) Result of without pre-smoothing step. (c) Our method. (d)–(f) Close-ups of corresponding images in (a)–(c). Here,
The effectiveness of
fidelity term
As mentioned in Shen et al.,
31
the

Our method is effective to remove noise-like structures. (a) Input noisy image. (b) The method using
Experiments and applications
In this section, we apply the proposed filter to several applications in image editing, including noise removal, clip-art compression artifact removal, detail enhancement and edge extraction, image abstraction and pencil sketching, and HDR tone mapping.
Parameter analysis and settings
We first provide some analysis on the role of parameters. The key parameter

Effects of varying
In all experiments, we empirically set
Image denoising
As a smoothing image filter, the proposed method can be applied to image denoising. Figure 7 shows an example compared with commonly used image filters including relative total variation (RTV),
35
WLS,
8
rolling guidance filter (RGF),
36
and

Comparisons of various smoothing methods on a noisy image. Results shown in (b)–(e) are generated by RTV,
35
WLS,
8
RGF,
36
and
Clip-art compression artifact removal
Cartoon-like images are heavily compressed and contain severe compression artifacts. Xu et al.
15
analyze that it is difficult to generate satisfied output as the compression artifact is highly dependent on edges. The edge-preserving filters can properly deal with this matter and do not require any learning process. As our method is capable of preserving salient edges, the proposed smoothing method is also suitable for clip-art compression artifact removal. We make a comparison with a set of edge-preserving methods, including BF,
5
GF,
26
WLS,
8
RTV,
35
RGF,
36
and

Detail enhancement and edge extraction
Detail enhancement is the process of representing details in a magnified way. We briefly introduce the detail enhancement algorithm, 26 which formulates the enhanced image as
where B denotes the image base layer, D denotes the image detail layer,
The proposed method can be applied to detail enhancement based on the decomposition in equation (18). We show an example of detail enhancement in Figure 9. Figure 9(a) is a natural image. Result of BF
5
shown in Figure 9(b) displays the gradient reversal artifacts. Figure 9(c) shows the result of

Edge extraction is a basic pre-processor of natural image editing and high-level structure inference. It is also a challenging problem because most edge detectors are sensitive to complex structures and unavoidable noises. As analyzed in section “Local weighted function

Edge enhancement and extraction. The parameters are
Image abstraction and pencil sketching
Usually, the visual perception of an image can be enriched with textures and details. In some cases, we prefer simplified stylistic pictures which are non-photorealistic abstraction with suppressing details and emphasizing edges from color images or videos. Conventional image abstraction methods contain two main steps—image smoothing step and edge component detecting step. To increase the visual distinctiveness of different regions, the extracted lines are added back to the smoothed image. Based on the video abstraction framework of Winnemöller et al.,
22
we apply the proposed method to image abstraction task. Figure 11 shows an example. The result of

Image abstraction and pencil sketching results. For fair comparisons, we set the parameters λ = 0.003,
HDR tone mapping
HDR mapping is another popular image editing task which aims to generate low dynamic range images by compressing the base layer to some level. The base layer should be smooth enough to generate reasonable contrast maintenance in range compression. Within the tone mapping framework of Durand and Dorsey,
6
the proposed filter can be used to generate the base layer. We show a tone mapping example in Figure 12 and compare it with some other commonly used methods. We first convert the input HDR radiance to a logarithmic scale (log10). Then we map the result to

Comparisons of HDR tone mapping using different methods. Top row: results by several different filtering methods. Bottom row are close-ups of corresponding images in the top row. The parameters of WLS are
Conclusion
In this article, to enrich the image processing technology of WMSNs images, we present an adaptive image filter based on
Our method is adaptive to preserve middle-scale details and remove small-scale details without employing prior texture information. If the structures and textures of the image are visually similar in scales, it is hard to distinguish between structures and textures; thus, part of the structures can be easily mistaken as textures. As can be seen from Figure 13, Figure 13(a) is a input image with scale and appearance similar to the underlying textures. Since the input image contains textures with strong contrast and the underlying textures are exceedingly too close to the scale and shape of these edges, the visually filtering output of our method is shown in Figure 13(b). As can be seen, our method is failed to preserve all of the structures.

Difficult examples. Our method is failed to extract structures whose scale and appearance are similar to the textures. We set the parameters λ = 0.0015,
Footnotes
Handling Editor: Eleonora Borgia
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work has been partially supported by National Natural Science Foundation of China (no. 61572099), Fundamental Research Funds for the Central Universities (no. 3132018192), and High-Tech Ship Research Program Support Project.
