Research Article  Open Access
Kai Hu, Aiguo Song, Min Xia, Zhiyong Fan, Xiaoying Chen, Ruidong Zhang, Zhichen Zheng, "An Image Filter Based on Shearlet Transformation and Particle Swarm Optimization Algorithm", Mathematical Problems in Engineering, vol. 2015, Article ID 414561, 9 pages, 2015. https://doi.org/10.1155/2015/414561
An Image Filter Based on Shearlet Transformation and Particle Swarm Optimization Algorithm
Abstract
Digital image is always polluted by noise and made data postprocessing difficult. To remove noise and preserve detail of image as much as possible, this paper proposed image filter algorithm which combined the merits of Shearlet transformation and particle swarm optimization (PSO) algorithm. Firstly, we use classical Shearlet transform to decompose noised image into many subwavelets under multiscale and multiorientation. Secondly, we gave weighted factor to those subwavelets obtained. Then, using classical Shearlet inverse transform, we obtained a composite image which is composed of those weighted subwavelets. After that, we designed fast and rough evaluation method to evaluate noise level of the new image; by using this method as fitness, we adopted PSO to find the optimal weighted factor we added; after lots of iterations, by the optimal factors and Shearlet inverse transform, we got the best denoised image. Experimental results have shown that proposed algorithm eliminates noise effectively and yields good peak signal noise ratio (PSNR).
1. Introduction
Images are frequently contaminated by noise on the processes of formation, transmission, and reception and make following processes such as segmentation, recognition difficult. This phenomenon makes noise reduction one of the most important problems in image processing.
Basically, there are three common methods to solve this problem, such as transform domain method [1, 2], spatial domain method [3], and partial differential equations (PDE) [4] method; here, our work is one branch of transform domain method. In transform domain method, because of its good performance in both time domain and frequency domain, wavelet transform has become one of the most active research fields in image enhancing. In this field, multiscale geometric analysis theory is the hottest and the most advanced research area. Under this theory, many famous achievements are proposed, for example, ridgelet [5], curvelet [6], contourlet [7], and bandlet [8]. However, with these achievements, there are also many problems to overcome.
Recently, Labate et al. proposed a novel class of multidimensional representation systems, which is called Shearlet. One advantage of this approach is that these systems can be constructed using generalized multiresolution analysis and implemented efficiently using a classical cascade algorithm [1, 9–15]. Due to the fact that Shearlet transforms have multiscale and multidirection feature, simple hard threshold denoising method could not yield bad performance in its practical application of image denoising [16]. Fan and Zhao [17–19] researched the problem of how to calculate the best threshold in this denoising method; they proposed a good idea that used optimal algorithm to get best threshold, but, in their papers, they did not research the fitness function. We hold this opinion that this last step is worth studying and the finding has theoretical value and practical directive meaning.
Among many optimal algorithms [20–33], PSO algorithm has been the most famous global optimization algorithm which is based on swarm intelligence. And it is easy to be realized and already applied to many fields. In this paper, we adopted PSO algorithm to optimize the problem we mentioned above. In this process, as an important part of PSO algorithm, an objective fitness function should be built to evaluate quality of reconstructed image, so we adopted a fast and rough method to evaluate noise level of image, and this method is just asked to be able to reflect the change trend of noise level in image. Many experiments data have shown that proposed algorithm can achieve better performance than classical Shearlet transform, but like all optimization algorithms, it also has drawback of slow computation speeds.
The remaining paper is organized as follows. Section 2 introduces related theories. Section 3 explains our algorithm, including workflow, Section 4 presents the experiment results of proposed algorithm, and Section 5 concludes this paper.
2. Related Theories
2.1. Shearlet Transform
Labate et al. [1, 2] proposed Shearlet transform based on wavelet. In dimension , affine systemhere, and , are invertible matrices with .
If satisfied Parseval , then those elements of are called composite wavelets.
Shearlet is a special example of , for only when here is the anisotropic dilation matrix and is the shear matrix.
For , when , , satisfy
Then, we get
Then, form a tiling of the set
From the condition on the support of , , it is easily deduced that have frequency support contained in the setThus, every element in is supported on a pair of trapezoids of approximate size , oriented along lines of slope .
For , here is the vertical cone, when formula (7) was satisfied:
Then, collection is a Parseval frame for .
2.2. Particle Swarm Optimization Algorithm
The classical PSO algorithm is described as follows [34].
Step 1. Initialize a population of particles with random positions and velocities in a dimension problem space.
Step 2. For each particle, evaluate its fitness value.
Step 3. Compare each particle’s fitness evaluation with the current particle’s pbest. If current value is better than pbest, set its pbest value to the current value and the pbest location to the current location in dimensional space.
Step 4. Compare fitness evaluation with the population’s overall previous best. If current value is better than gbest, then reset gbest to the current particle’s array index and value.
Step 5. Change the velocity and position of particle according to Step and Step , respectively:
Step 6. Loop to Step until a stopping criterion is met.
Step 7. Over.
The vector is the position of th particles, is the velocity of the th particles, and is the best previous position (the position giving the best fitness value) of the th particles. The index is the index of the best particle among all the particles in the swarm. Variable is the inertia weight, and are positive constants, and rand is random number in range generated according to a uniform probability distribution. Particles’ velocities along each dimension are clamped to a maximum velocity . If the sum of acceleration causes the velocity on that dimension to exceed , which is a parameter specified by the user, then the velocity on that dimension is limited to .
The inertia weight represents the degree of the momentum of the particles. The second part is the “cognition” part, which represents the independent behavior of the particle itself. The third part is the “social” part, which represents the collaboration among the particles. The constants and represent the weighting of “cognition” and “social” parts that pull each particle towards pbest and gbest positions.
3. Proposed Algorithm
This chapter is divided into 3 parts. Section 3.1 introduced the new threshold rule we designed which is based on classical Shearlet theory. And the fitness function we quoted is shown in Section 3.2. Then, our all algorithm workflow (Figure 1) is detailed and introduced in Section 3.3.
3.1. Threshold Rule
Threshold rule is the most important problem in image denoising of transform domain, and the hard threshold and the softthreshold approach are two options. Fan et al. [18] proposed a threshold rule:Here, is the pixels number of image and is noise level.
Research shows that Fan et al. threshold is not the optimal threshold. Considering this, Fan et al. [18] proposed improved threshold rules:
All formula (9) and formula (10) are intended to get better denoising performance by setting good threshold to each subwavelet, but they can not find the best threshold. Based on this idea, here, we proposed a new idea that adopts optimization algorithm to find the best performance; that is, give weighted factor to each subwavelet; then, use PSO algorithm to find the best factors.
However, in optimization algorithm, the key problem is how to design an objective and good fitness.
3.2. Fitness Function
Fan and Zhao [17–19] proposed the way to get best threshold by optimal algorithm, but in their papers, they did not introduce where to get fitness function.
Wang [35] proposed a fast and rough evaluated method to noise level of noisy image, and we used as our fitness parameter of PSO algorithm. We defined our fitness as follows:where is estimate of signal intensity in image and is estimate of noise intensity in image.
Define as an unpolluted gray image with size of , and define an area ; with the same form, we can define a noisy image as follows:where is noise model; in this paper, it is Gaussian noise model. From formula (12), we designed and evaluated methods of and :
Here, let us suppose the classical Gaussian filter is perfect; its output is noiseless, so we can suppose the median data of signal to be the estimate of signal intensity in image.
Then, we suppose signal in image is at low frequencies, and is perfect; its output is signalfree totally, so we can suppose the standard variance in image to be the estimate of noise intensity in image:Here, is standard variance.
Based on this definition of fitness, we proposed our algorithm.
3.3. Proposed Algorithm
The most critical problem is how to find the best weighted factor . Here, we proposed our algorithm which adopts PSO algorithm to decide coefficients of each subwavelet in different scale and direction of Shearlet transform, intended to get optimal denoising performance.
Our algorithm main routine is as follows.
Step 1. Use classical Shearlet transform to decompose noised image into many pieces under multiscale and multiorientation, get subwavelet , is scale, and is direction.
Step 2. Give weighted factor to those subwavelets obtained, reconstruct image, design a fitness function to evaluate noise level of new image, and use PSO algorithm to find the best and output
Step 3. Output the best image which is reconstructed by .
Our PSO subroutine is shown as follows.
Step 1. Initialize a population of particles with random positions and velocities.
Step 2. For each particle, .
Step 3. For each particle, reconstruct image by .
Step 4. For each , evaluate its fitness by formula (11).
Step 5. Compare each particle’s fitness evaluation with the current particle’s pbest. If current value is better than pbest, set its pbest value to the current value and the pbest location to the current location in 2dimensional space.
Step 6. Compare fitness evaluation with the population’s overall previous best. If current value is better than gbest, then reset gbest to the current particle’s array index and value.
Step 7. Change the velocity and position of particle, respectively:
Step 8. Loop to Step until a stopping criterion is met. If one stopping condition in the following is satisfied, go to Step ; if not, return to Step .(i)Maximum iterations are exceeded.(ii)The optimal target value is achieved.
Step 9. Exit optimal algorithm, output .
4. Experimental Results and Analysis
4.1. Fitness Function Performance Test
For the sake of evaluating the performance of fitness function in proposed algorithm, we added Gaussian noise in several classical images with different variance and then calculated their fitness function data and plotted in Figure 2.
(a) Boat
(b) Our fitness function of image (a) in different noise level
(c) Barbara
(d) Our fitness function of image (c) in different noise level
In Figure 2, as we can see from this output, despite the existence of some small fluctuation, those lines can basically reflect the trend that image’s quality is moving in the worse direction, and that is exactly what we need in our optimal algorithm.
These two images are pixels, and the test platform is window 7, Matlab 2012a; CPU is i73770 3.4 GHz, 16 G RAM. By using “tic” and “toc” function, its average elapsed time is 0.001612 seconds, so this fitness function can be calculated very fast.
Based on the above, we can draw a conclusion that this fitness function (formula (11)) is able to be applied in our algorithm basically.
4.2. Total Algorithm Performance Test
In order to validate the performance of this algorithm, 4 images were filtered by proposed algorithm and classical Shearlet algorithm that we downloaded code from website [36]. These 4 test images are head MRI (Figure 3(a)), baboon (Figure 3(b)), Barbara (Figure 3(c)), and brain MRI (Figure 3(d)) image; we added different noise level into them, filtered these noisy images by two algorithms, and listed their filtered results PSNR (peak signal noise ratio) in Figure 2. Here, PSNR has the same classical definition in [3]; it has no relationship with SNR′ which we defined by ourselves.
(a) Head MRI
(b) Baboon
(c) Barbara
(d) Brain MRI
(e) Comparison chart of two algorithms on (a)
(f) Improved PSNR of (e)
(g) Comparison chart of two algorithms on (b)
(h) Improved PSNR of (g)
(i) Comparison chart of two algorithms on (c)
(j) Improved PSNR of (i)
(k) Comparison chart of two algorithms on (d)
(l) Improved PSNR of (k)
Figures 3(e), 3(g), 3(i), and 3(k) are comparison charts of two algorithms PSNR output and we can see that all red line is higher than all blue line totally, though all two lines are similar. In order to get a better view, we listed these differences of twogroup data by bar charts of Figures 3(f), 3(h), 3(j), and 3(l). From these bar charts, we can directly find that our proposed algorithm is better than classical Shearlet algorithm, and this better performance will decrease when noise level is higher.
So the result of these experiments data had shown that our proposed algorithm has better denoising performance than classical Shearlet algorithm, and this advantage will decrease when noise level increased.
To show the “improved PSNR” data in Figure 3 better, Table 1 is show; in this table, from those average data, we can see that our algorithm has good performance, but those worst data reflect our algorithm that has drawback; we guess that is caused by the small fluctuation of our fitness function.

In all above experiments, 9 main PSO algorithm’s parameters adopted are shown in Table 2.

5. Conclusions
In order to eliminate Gaussian noise and preserve image details as much as possible, this paper proposed a novel image filter algorithm which combined merit of PSO algorithm and classical Shearlet transform. It decomposes noised image into many subwavelets under multiscale and multiorientation by classical Shearlet transform; design a fitness functions in PSO and give weighted factors to each subwavelet; use PSO to find optimal weighted factors; after that, reconstruct new and denoised image. It has two contributions: one is proposing PSO to optimal Shearlet transform and another is quoting a rough, objective, fast fitness function to measure images quality. Computer simulations results are given to verify the effectiveness of this algorithm.
Conflict of Interests
The authors declare that they have no conflict of interests.
Authors’ Contribution
All authors drafted the paper and read and approved the final paper.
Acknowledgments
Whatever implementation the authors come up with needs to be based on classical Shearlet algorithm, and they cannot execute their work without Professor Labate’s earlier work and his opensource code online. Thanks go to Professor Labate. The authors would like to thank the anonymous reviewers whose comments greatly improved the paper. This paper was funded under a Grant from the National Natural Science Foundation of China (no. 61105115), “Six Talent Peaks Program” of Jiangsu Province of China (2014XXRJ007), a Grant from the Jiangsu Province Natural Science Foundation (nos. BK20131000, S7013028001), National Training Program for Undergraduate on Innovation and Entrepreneurship (no. 201310300039Z), Industry Academia Research Cooperative Innovation Fund of Jiangsu Province (BY201300701), and Open Program based on Laboratory of Nanjing University of Information Science and Technology (nos. 2014KF001, 2014KF006, and 2014KF0019).
References
 D. Labate, W. Lim, G. Kutyniok, and G. Weiss, “Sparse multidimensional representation using shearlets,” in 11th Wavelets, vol. 5914 of Proceedings of SPIE, pp. 254–262, San Diego, Calif, USA, September 2005. View at: Publisher Site  Google Scholar
 D. Labate and G. Weiss, “Wavelets associated with composite dilations,” in Matemáticas: Investigación y Educación. Un homenaje a Miguel de Guzmán, Universidad Complutense de Madrid, Madrid, Spain, 2005. View at: Google Scholar
 K. Hu, A. Song, M. Xia, X. Ye, and Y. Dou, “An adaptive filtering algorithm based on genetic algorithmbackpropagation network,” Mathematical Problems in Engineering, vol. 2013, Article ID 573941, 8 pages, 2013. View at: Publisher Site  Google Scholar
 L. I. Rudin, S. Osher, and E. Fatemi, “Nonlinear total variation based noise removal algorithms,” Physica D: Nonlinear Phenomena, vol. 60, pp. 259–268, 1992. View at: Publisher Site  Google Scholar
 M. N. Do and M. Vetterli, “The finite ridgelet transform for image representation,” IEEE Transactions on Image Processing, vol. 12, no. 1, pp. 16–28, 2003. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 E. J. Candes and D. L. Donoho, “Curvelets: a surprisingly effective nonadaptive representation of objects with edges,” in Curves and Surfaces Fitting, pp. 105–120, Vanderbilt University Press, Nashville, Tenn, USA, 2000. View at: Google Scholar
 M. N. Do and M. Vetterli, Contourlets Beyond Wavelets, edited by G. V. Welland, Academic Press, 2003.
 S. Mallat and G. Peyré, “A review of bandlet methods for geometrical image representation,” Numerical Algorithms, vol. 44, no. 3, pp. 205–234, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 D. Labate, W. Q. Lim, G. Kutyniok, and G. Weiss, “Sparse multidimensional representation using shearlets,” in Wavelets XI, vol. 5914 of Proceedings of SPIE, pp. 254–262, San Diego, Calif, USA, 2005. View at: Publisher Site  Google Scholar
 S. Yi, D. Labate, G. R. Easley, and H. Krim, “A shearlet approach to edge analysis and detection,” IEEE Transactions on Image Processing, vol. 18, no. 5, pp. 929–941, 2009. View at: Publisher Site  Google Scholar  MathSciNet
 S. Yi, D. Labate, G. R. Easley, and H. Krim, “Edge detection and processing using shearlets,” in Proceedings of the IEEE International Conference on Image Processing (ICIP '08), pp. 1148–1151, San Diego, Calif, USA, October 2008. View at: Publisher Site  Google Scholar
 G. R. Easley, D. Labate, and F. Colonna, “Shearletbased total variation diffusion for denoising,” IEEE Transactions on Image Processing, vol. 18, no. 2, pp. 260–268, 2009. View at: Publisher Site  Google Scholar
 S. Yi, D. Labate, G. R. Easley, and H. Krim, “A shearlet approach to edge analysis and detection,” IEEE Transactions on Image Processing, vol. 18, no. 5, pp. 929–941, 2009. View at: Publisher Site  Google Scholar
 G. R. Easley, D. Labate, and W.Q. Lim, “Optimally sparse image representations using shearlets,” in Proceedings of the 40th Asilomar Conference on Signals, Systems, and Computers (ACSSC '06), pp. 974–978, IEEE, November 2006. View at: Publisher Site  Google Scholar
 M. A. Borgi, D. Labate, M. El'Arbi, and C. Ben Amar, “Sparse multiregularized shearlet network using convex relaxation for face recognition,” in Proceedings of the International Conference on Pattern Recognition (ICPR '14), 2014. View at: Google Scholar
 G. R. Easley, D. Labate, and V. M. Patel, “Directional multiscale processing of images using wavelets with composite dilations,” Journal of Mathematical Imaging and Vision, vol. 48, no. 1, pp. 13–34, 2014. View at: Publisher Site  Google Scholar  MathSciNet
 Z.Y. Fan, Q.S. Sun, Z.X. Ji, and K. Hu, “An image filter based on multiobjective genetic algorithm and shearlet transformation,” Mathematical Problems in Engineering, vol. 2013, Article ID 463760, 7 pages, 2013. View at: Publisher Site  Google Scholar  MathSciNet
 Z. Fan, Q. Sun, and F. Ruan, “An improved image denoising algorithm based on Shearlet,” International Journal of Signal Processing, Image Processing and Pattern Recognition, vol. 6, no. 4, 2013. View at: Google Scholar
 J. Zhao, H. Sun, C.Z. Deng, and X. Chen, “Particle swarm optimization based adaptive image denoising in shearlet domain,” Journal of Chinese Computer Systems, vol. 32, no. 6, pp. 1147–1150, 2011 (Chinese). View at: Google Scholar
 X. Chen, C. Deng, and S. Wang, “Shearletbased adaptive shrinkage threshold for image denoising,” in Proceedings of the International Conference on EBusiness and EGovernment (ICEE '10), pp. 1616–1619, IEEE, May 2010. View at: Publisher Site  Google Scholar
 M. Xia and W. K. Wong, “A seasonal discrete grey forecasting model for fashion retailing,” KnowledgeBased Systems, vol. 57, pp. 119–126, 2014. View at: Publisher Site  Google Scholar
 S. Aiguo and L. Jiren, “Evolving Gaussian RBF network for nonlinear time series modelling and prediction,” Electronics Letters, vol. 34, no. 12, pp. 1241–1243, 1998. View at: Publisher Site  Google Scholar
 K. Hu, A. G. Song, Y. C. Zhang, and W. L. Wang, “Delayrangedependent stability criteria of neural networks with timevarying discrete and distributed delays,” International Journal of Advanced Robotic Systems, vol. 11, no. 1, article 23, 2014. View at: Publisher Site  Google Scholar
 K. Hu, A. Song, W. Wang, Y. Zhang, and Z. Fan, “Fault detection and estimation for nonGaussian stochastic systems with time varying delay,” Advances in Difference Equations, vol. 2013, article 22, 2013. View at: Publisher Site  Google Scholar
 X. Wen and A. Song, “An immune evolutionary algorithm for sphericity error evaluation,” International Journal of Machine Tools and Manufacture, vol. 44, no. 10, pp. 1077–1084, 2004. View at: Publisher Site  Google Scholar
 A. Song, Y. Han, H. Hu, L. Tian, and J. Wu, “Active perceptionbased haptic texture sensor,” Sensors and Materials, vol. 25, no. 1, pp. 1–15, 2013. View at: Google Scholar
 M. Xia, Y. Zhang, L. Weng, and X. Ye, “Fashion retailing forecasting based on extreme learning machine with adaptive metrics of inputs,” KnowledgeBased Systems, vol. 36, pp. 253–259, 2012. View at: Publisher Site  Google Scholar
 M. Xia, Z. Wang, and J. Fang, “Temporal association based on dynamic depression synapses and chaotic neurons,” Neurocomputing, vol. 74, no. 17, pp. 3242–3247, 2011. View at: Publisher Site  Google Scholar
 M. Xia, L. Weng, and X. Ye, “Sequence memory based on ordered pattern interrelation,” Advanced Science Letters, vol. 5, no. 2, pp. 547–551, 2012. View at: Publisher Site  Google Scholar
 Q. Liu, H. Lu, and S. Ma, “Improving Kernel Fisher discriminant analysis for face recognition,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 14, no. 1, pp. 42–49, 2004. View at: Publisher Site  Google Scholar
 Q. Liu, R. Huang, H. Lu, and S. Ma, “Kernelbased nonlinear discriminant analysis for face recognition,” Journal of Computer Science and Technology, vol. 18, no. 6, pp. 788–795, 2003. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 Q. Liu, S. Ma, and H. Lu, “Head tracking using shapes and adaptive color histograms,” Journal of Computer Science and Technology, vol. 17, no. 6, pp. 859–864, 2002. View at: Publisher Site  Google Scholar  MathSciNet
 M. A. DuarteMermoud, N. H. Beltrán, and S. A. Salah, “Probabilistic adaptive crossover applied to chilean wine classification,” Mathematical Problems in Engineering, vol. 2013, Article ID 734151, 10 pages, 2013. View at: Publisher Site  Google Scholar
 R. A. Krohling, “Gaussian swarm: a novel particle swarm optimization algorithm,” in Proceedings of the IEEE Conference on Cybernetics and Intelligent Systems, vol. 1, pp. 372–376, December 2004. View at: Google Scholar
 W.Y. Wang, “Selecting the optimal Gaussian filtering scale via the SNR of image,” Journal of Electronics and Information Technology, vol. 31, no. 10, pp. 2483–2487, 2009 (Chinese). View at: Google Scholar
 http://www.math.uh.edu/∼dlabate/software.html.
Copyright
Copyright © 2015 Kai Hu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.