Professional Documents
Culture Documents
Method
Vikas Gupta, Rajesh Mahle, Raviprakash S Shriwas
W AVELET transforms help us to represent signals with a high dominated by noise; coefficients with a maximum absolute
degree of sparsity. Principle behind a non-linear wavelet value carry more signal information than noise. Replacing
based signal estimation method called as wavelet denoising. noisy coefficients by 0 (zero) and an inverse wavelet transform
During transmission generally the image is corrupted by noise which may lead to a reconstruction that has less amount of noise.
is not easily eliminated in image processing. The space field is data Hard threshold is a “kill or keep” procedure and is more
operation method carried on the original image, and processes the intuitively appealing, the alternative, soft thresholding shrinks
image grey value, for example neighborhood average method, wiener
coefficients above the threshold in absolute value. While at
filter and so on. Then the aim of eliminating noise from noisy image
is achieved by inverse wavelet transformation [1] [2]. There are two first sight hard thresholding may seem to be natural, the
main types of wavelet transform - continuous wavelet transform and continuity of soft thresholding has some advantages.
discrete wavelet transform [2]. Sometimes, noise coefficients may pass the hard threshold and
appear as annoying ’blips’ in the output. A small threshold
may produce a result close to the input value, but the result
may still be noisy. A large threshold on the other hand, yields a
signal with a large number of zero coefficients. Wavelet
denoising are use to remove the noise present in the signal
while preserving the signal characteristics as it is, regardless of
its frequency content. It contains three steps: 1st a linear
Vikas Gupta is the H.O.D. of ECE Dept., TIT, Rajiv Gandhi Technical forward wavelet transform, 2nd is nonlinear thresholding step
University, Bhopal, M.P., India. (Email: vgup24@yahoo.com); phone: + and 3rd is linear inverse wavelet transform. As we know that
919424467817.
Rajesh Mahle is the Asst. Prof. of ECE Dept., TIT, Rajiv Gandhi
Wavelet denoising must not be confused with smoothing;
Technical University, Bhopal, M.P., India. (Email: rajeshmahle@gmail.com); because smoothing only removes the high frequencies and
Phone: +917898064685. retains the lower ones. Wavelet shrinkage is one type of a non-
Raviprakash S Shriwash is the ME Student of ECE Dept., TIT, Rajiv linear process and is what distinguishes it from entire linear
Gandhi Technical University, Bhopal, M.P., India. (Corresponding author to
provide; email: ravi.shriwas@gmail.com); Phone: +919960987745.
denoising technique such as least squares. As will be
explained, wavelet shrinkage depends heavily on the choice of
978-1-4673-5999-3/13/$31.00 ©2013 IEEE
a thresholding parameter and the choice of this threshold
determines, to a great extent the efficacy of denoising. As we VisuShrink: - VisuShrink is thresholding by applying the
know that the Image Denoising facing so many Problem. Universal threshold proposed by Donoho and Johnstone [3].
Image denoising is different from image enhancement. As This threshold is given by 2 logM where σ is the noise
Gonzalez and Woods [1] explain, image enhancement is an variance and M is the number of pixels in the image. It is
objective process, whereas image denoising is a subjective proved in [3] that the maximum of any M values iid as N (0,
process. Image enhancement, on the other hand, involves σ2) will be smaller than the universal threshold with high
manipulation of the image characteristics to make it more probability, with the probability approaching 1 as M values
appealing to the human eye. There is some overlap between increases. Thus, with high probability, a pure noise signal is
the two processes. Image denoising is a restoration process, estimated as being identically zero. This is because the
where attempts are made to recover an image that has been universal threshold (UT) is derived under the constraint that
degraded by using prior knowledge of the degradation process. with high probability the estimate should be at least as smooth
SureShrink: - Let μ = (μi: i=1,…. d) be a length-d vector, and as the signal. So the UT tends to be high for large values of M,
let x = {xi} (with xi distributed as N(μi,1)) be multivariate killing many signal coefficients along with the noise.
normal observations with mean vector μ. Let µ= µ(x) be a fixed Therefore the threshold does not adapt well to discontinuities
estimate of μ based on the observations x. SURE (Stein’s in the signal.
unbiased Risk Estimator) is a method for estimating the loss
||µ - µ||2 in an unbiased fashion. In our case is the soft III. IMPLEMENTATION METHODOLOGY
threshold estimator. it ( x) nt ( xi ) We apply Stein’s result to From the data flow diagram we can say that, when noise is add
get an unbiased estimate of the risk E || t ( x) ||2 . The to the image such image called noisy image. Pre filter process
is done by using forward wavelet transform, then we determine
above optimization problem is computationally
threshold value internally, after determine threshold
straightforward. Without loss of generality, we can reorder x in
order of increasing |xi|. Then on intervals of t that lie between
two values of |xi|, SURE (t) is strictly increasing. Therefore the Start
minimum value of tS is one of the data values |xi|. There are
only d values and the threshold can be obtained using O (d
log(d)) computations. Input Image Add Noises
2ij
ij 1 2 Post Filter
S
ij
Where, UT is the universal threshold and Sij2 is the squared Denoised Image
sum of all wavelet coefficients in the respective 3×3 window
given by:
j 1 i 1 End
Sij 2 1Y 2 mn
n j m i
Figure 1: Implementation flow diagram
Here, + sign at the end of the formula means to keep the value thresholding is done by using inverse wavelet transform.
positive values while setting it to zero when it is negative. The Finally post filter is done to get denoised image.
estimated center wavelet coefficient Fij is then calculated from
its noisy counterpart Yij as:
Fij ijYij
A. BAYES INVARIANT IMPLEMENTATION 4.Get the de-noise image using global thresholding
In Bayes Invariant technique the image is first divided into option.
four parts a, h, v and d, representing the approximate,
horizontal, vertical and diagonal components. Table 2: SureShrink
MATLAB BayesInvariant Implementation Steps:
Denoising Method
Input Type of
SureShrink
1. Use ddencmp to get the denoising co-efficient Image Noise
PSNR MSE
2. Define the Noise Variance and adding Gaussian noise Salt & pepper 44.67 0.05
3. Define type of wavelet used and the number of scales Image 1 Gaussian 35.03 0.10
in the wavelet decomp (Chrysanthemum.jpg) Speckle 39.62 0.04
4. Do the wavelet decomposition Poisson 39.79 0.03
5. Find the bayes co-efficient using bayesC function. Salt & pepper 44.11 0.05
6. Calculating sigma hat Image 2 Gaussian 34.30 0.09
7. Reconstructing the image from the Bayes-threshold (Hydrangeas.jpg) Speckle 40.37 0.04
wavelet coefficients Poisson 41.62 0.03
8. Finally de-noise the image using global thresholding Salt & pepper 39.66 0.04
option by wavefast function. Image 3 Gaussian 34.43 0.08
(Desert.jpg) Speckle 40.33 0.04
Poisson 42.01 0.03
Table 1: Bayes Invarient
Salt & pepper 36.95 0.06
Denoising Method Image 4 Gaussian 32.82 0.09
Input Type of (Koala.jpg) Speckle 36.84 0.05
Bayes Invarient
Image Noise
PSNR MSE Poisson 37.57 0.05
Salt & pepper 45.79 0.03 Salt & pepper 35.20 0.06
Image 1 Gaussian 49.41 0.01 Image 5 Gaussian 33.75 0.07
(Chrysanthemum.jpg) Speckle 49.42 0.03 (Penguins.jpg) Speckle 36.72 0.05
Poisson 49.41 0.01 Poisson 37.46 0.07
Salt & pepper 49.33 0.01
Image 2 Gaussian 49.43 0.01
(Hydrangeas.jpg) Speckle 49.40 0.03 C. VISUSHRINK IMPLEMENTATION
Poisson 49.50 0.01
Salt & pepper 45.82 0.03
VisuShrink is a technique that is the combination of soft
Image 3 Gaussian 49.47 0.01 thresholding combined with SureShrink technique. However
(Desert.jpg) Speckle 45.83 0.03 here the threshold is given by 2log M where σ is the noise
Poisson 45.88 0.01 variance and M is the number of pixels in the image. Here the
Salt & pepper 43.23 0.03
input image is first divided into a, h, v and d, representing the
Image 4 Gaussian 43.24 0.03
(Koala.jpg) Speckle 43.19 0.03
approximate, horizontal, vertical and diagonal components.
Poisson 43.21 0.03 Then threshold is computed and each pixel of h, v and d is
Salt & pepper 45.44 0.03 compared with the calculated threshold. If a particular pixel
Image 5 Gaussian 45.44 0.03 value is greater than the threshold it is replaced by the mean of
(Penguins.jpg) Speckle 45.52 0.03 the 3x3 neighborhood of that pixel. This is gives us h’, v’ and
Poisson 45.37 0.03 d’ components which is then combined with a, to get image to
which 1D DWT is applied to get the final denoised image.
MATLAB VisuShrink Implementation Steps:
B. SURESHINK IMPLEMENTATION 1.Use ddencmp to get the denoising co-efficients.
SureShrink method is very fast as compared to VisuShrink. 2.Define the Noise Variance and adding Gaussian noise
MATLAB SureShrink Implementation Steps: 3.Define the type of wavelet(filter bank) used and the
1.Find the threshold for SureShrink method by: number of scales in the wavelet decomp
First sort the image pixels in descending order 4.Do the wavelet decomposition Call the command
Calculate the cumulative sum wavetrans2 which calculate the 2nd order coefficient.
Calculate the threshold by taking sqrt of the 5.Calculate sigma from smallest scale only
best pixels 6.Make the threshold by using soft-thresholding of
2.Now find the places where pixels are more than wavelet coefficients
threshold 7.Now find the places where pixels are more than
3.Now apply the denoising by replacing the pixels with threshold
the mean of the 3x3 neighborhood of that pixel, if a 8.Now apply the denoising by replacing the pixels with
particular pixel value is greater than the threshold the mean of the 3x3 neighborhood of that pixel, if a
particular pixel value is greater than the threshold
Table 3: VisuShrink variance of the noise or the noise model. Thus, most of the
image denoising algorithms consider known variance of the
noise and the noise model to compare the performance with
Denoising Method
Input Type of different image denoising algorithms. Gaussian Noise with
VisuShrink
Image Noise different variance values is added in the natural images to test
PSNR MSE
the performance of the image denoising algorithm.
Salt & pepper 21.22 0.17
Image 1 Gaussian 21.38 0.17 From the obtained results it is visible that out of the
(Chrysanthemum.jpg) Speckle 22.32 0.16 BayesInvariant thresholding technique in comparison has the
Poisson 21.95 0.16 highest PSNR values and minimum MMSE. SureShrink
Salt & pepper 33.56 0.05 technique has high PSNR and comparatively high MMSE to
Image 2 Gaussian 30.32 0.07 BayesInvariant thresholding technique. On the other hand
(Hydrangeas.jpg) Speckle 36.69 0.04 VisuShrink method takes highest computation time and has
Poisson 35.61 0.04 lowest PSNR and much Higher MMSE vales. An important
Salt & pepper 33.98 0.05 point to note is that although SureShrink performed a little
Image 3 Gaussian 32.08 0.06 poor than BayesInvariant based on PSNR and MMSE
(Desert.jpg) Speckle 33.94 0.05 denoising, it adapts well to sharp discontinuities in the image.
Poisson 34.15 0.06 Thus to summarize BayesInvariant thresholding technique has
Salt & pepper 34.75 0.06 best performance, SureShrink is better whereas VisuShrink is
Image 4 Gaussian 29.94 0.08 comparatively poor in performance.
(Koala.jpg) Speckle 33.45 0.06
To implement other shrink techniques such as Bivariate Shrink
Poisson 33.41 0.06
Method, which is good.
Salt & pepper 37.71 0.04
Image 5 Gaussian 29.63 0.08
To focus on building robust statistical models of non-
(Penguins.jpg) Speckle 32.20 0.06 orthogonal wavelet coefficients based on their intra scale and
Poisson 33.09 0.06 inter scale correlations. Such models can be more effectively
used for image denoising and compression.