SlideShare a Scribd company logo
P. Nirmala devi
AP(SLG)/ECE
KEC
 Digital Image Processing is the use of computer
algorithms to perform image processing on digital
images.
 Advantages over analog image processing:
- Allows a much wider range of
algorithms to be applied to the input data
- Avoid problems such as the build-up of
noise and signal distortion during
processing.
03/10/17
KEC/EIE/DIP
 Two principal application areas:
◦ Improvement of pictorial information for human
interpretation
◦ Processing of image data for storage, transmission and
representation for autonomous machine perception
03/10/17
KEC/EIE/DIP
◦ An digital image may be defined as a
two-dimensional quantity f(x,y)
x and y are spatial coordinates and
f is intensity or gray level at that point
03/10/17
KEC/EIE/DIP
 Low-level IP
Image preprocessing to reduce noise, contrast
enhancement, image sharpening
Both inputs and outputs are images
 Mid-level IP
Segmentation and description
The inputs are generally images, but outputs are
attributes extracted from those images
(e.g., edges,contours… )
 High-level IP
Making sense of an ensemble of recognized objects
03/10/17
KEC/EIE/DIP
 Goal:
◦ To Remove noise
◦ To Preserve useful information
 Applications:
◦ Medical signal/image analysis (ECG, CT, MRI etc.)
◦ Data mining
◦ Radio astronomy image analysis
03/10/17
KEC/EIE/DIP
Visually unpleasant
Bad for compression
Bad for analysis
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
 Images are often contaminated by noise during
i) acquisition
ii) storage
iii)transmission
 Effect:
Degradation at the quality of the images
03/10/17
KEC/EIE/DIP
The sources of noise in digital images arise during
image acquisition (digitization) and transmission
◦ Imaging sensors can be affected by ambient
conditions
◦ Interference can be added to an image during
transmission
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
thermal imaging electrical interference
ultrasound imaging
physical interference
03/10/17
KEC/EIE/DIP
 Simplified assumptions
 Noise is independent of signal
 Noise types
 Independent of spatial location

Impulse noise

Additive white Gaussian noise
 Spatially dependent

Periodic noise
 Definition: is considered to be any
measurement that is not part of the phenomena
of interest.
 Images are affected by different types of noise:
 Gaussian noise
 Salt and Pepper noise
 Poisson Noise
 Speckle Noise
03/10/17
KEC/EIE/DIP
 Impulse noise
Characterized by some portion of image pixels
that are corrupted, leaving the remaining pixels
unchanged. (Salt & Pepper Noise)
 Additive noise
A value from a certain distribution is added to each
image pixel, for example, a Gaussian distribution.
 Multiplicative noise
The intensity of the noise varies with the signal
intensity (e.g., speckle noise).
03/10/17
KEC/EIE/DIP
W
j
H
i
j
i
X
j
i
Y
≤
≤
≤
≤





=
1
,
1
)
,
(
0
255
)
,
(
Definition
Each pixel in an image has the probability of p/2 (0<p<1) being
contaminated by either a white dot (salt) or a black dot (pepper)
with probability of p/2
with probability of p/2
with probability of 1-p
noisy pixels
clean pixels
X: noise-free image, Y: noisy image
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 255 0 128 128 128 128 128 128
128 128 128 128 0 128 128 128 128 0
128 128 128 128 128 128 128 128 128 128
128 128 0 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
0 128 128 128 128 255 128 128 128 128
128 128 128 128 128 128 128 128 128 255
128 128 128 128 128 128 128 255 128 128
03/10/17
KEC/EIE/DIP
Noisy image Y
filtering
algorithm
Can we make the denoised image X as close
to the noise-free image X as possible?
^
denoised
image
03/10/17
KEC/EIE/DIP
225 225 225 226 226 226 226 226
225 225 255 226 226 226 225 226
226 226 225 226 0 226 226 255
255 226 225 0 226 226 226 226
225 255 0 225 226 226 226 255
255 225 224 226 226 0 225 226
226 225 225 226 255 226 226 228
226 226 225 226 226 226 226 226
0 225 225 226 226 226 226 226
225 225 226 226 226 226 226 226
225 226 226 226 226 226 226 226
226 226 225 225 226 226 226 226
225 225 225 225 226 226 226 226
225 225 225 226 226 226 226 226
225 225 225 226 226 226 226 226
226 226 226 226 226 226 226 226
Sorted: [0, 0, 0, 225, 225, 225, 226, 226, 226]
03/10/17
KEC/EIE/DIP
Noisy image Y
denoised
image
3-by-3 window
W
j
H
i
N
j
i
N
j
i
N
j
i
X
j
i
Y
≤
≤
≤
≤
+
=
1
,
1
),
,
0
(
~
)
,
(
),
,
(
)
,
(
)
,
(
2
σ
Definition
Each pixel in an image is disturbed by a Gaussian random variable
With zero mean and variance σ2
X: noise-free image, Y: noisy image
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
Numerical Example
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 129 127 129 126 126 128
126 128 128 129 129 128 128 127
128 128 128 129 129 127 127 128
128 129 127 126 129 129 129 128
127 127 128 127 129 127 129 128
129 130 127 129 127 129 130 128
129 128 129 128 128 128 129 129
128 128 130 129 128 127 127 126
03/10/17
KEC/EIE/DIP
 A different type of noise in the coherent imaging of
objects caused by errors in data transmission
 Speckle noise follows a gamma distribution
 Presence of speckle is undesirable
 damages radiometric resolution
 affects the tasks of human interpretation and scene analysis.
KEC/EIE/DIP
Image Denoising Techniques
 Spatial Domain Denoising
• Conventional AND Adaptive filtering
•Frequency Domain Denoising
• Wiener Filtering
•Wavelet Domain Denoising
• Wavelet thresholding: Hard vs. Soft
• Wavelet-domain shrinking
03/10/17
 Spatial filters are designed to highlight or
suppress specific features in an image, based on
their spatial frequency.
 Linear Filters - Mean Filters
 Non Linear Filters - Median Filters
03/10/17
KEC/EIE/DIP
A common filtering involves moving a 'window' of a few pixels in dimension
(e.g. 3x3, 5x5, etc.) over each pixel in the image, applying a mathematical
calculation using the pixel values under that window, and replacing the central
pixel with the new value.
03/10/17
KEC/EIE/DIP
Image of CHURN Farm
Daedalus 1268 ATM
03/10/17
KEC/EIE/DIP
A low-pass filter is designed to emphasise larger, homogeneous areas of
similar tone and reduce the smaller detail in an image. Thus, low-pass filters
generally serve to smooth the appearance of an image.
03/10/17
KEC/EIE/DIP
A high-pass filter does the opposite, and serves to sharpen the appearance of fine
detail in an image.
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
Wide windows do not provide good localization
at high frequencies.
03/10/17
KEC/EIE/DIP
Use narrower windows at high frequencies.
03/10/17
KEC/EIE/DIP
Narrow windows do not provide good localization
at low frequencies.
03/10/17
KEC/EIE/DIP
Use wider windows at low frequencies.
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
 Overcomes the preset resolution problem of the
STFT by using a variable length window:
◦ Use narrower windows at high frequencies for better
time resolution.
◦ Use wider windows at low frequencies for better
frequency resolution.
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
 There are many different wavelets:
Morlet
Haar Daubechies
03/10/17
KEC/EIE/DIP
 Sparsity: for functions typically found in practice,
many of the coefficients in a wavelet
representation are either zero or very small.
 Linear-time complexity: many wavelet
transformations can be accomplished in O(N)
time.
03/10/17
KEC/EIE/DIP
• Adaptability: wavelets can be adapted to
represent a wide variety of functions (e.g.,
functions with discontinuities, functions defined on
bounded domains etc.).
– Well suited to problems involving images, open or
closed curves, and surfaces of just about any variety.
– Can represent functions with discontinuities or corners
more efficiently (i.e., some have sharp corners
themselves).
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
Properties of Wavelets (cont’d)
•Multiresolution analysis :
•Multiresolution analysis: representation of a
signal (e.g., an images) in more than one
resolution/scale.
•Features that might go undetected at one
resolution may be easy to spot in another.
• Noise filtering
• Image compression
– Fingerprint compression
• Image fusion
• Recognition
• Image Matching and Retrieval
03/10/17
KEC/EIE/DIP
One Stage Filtering gives Approximations and
details:
• The low-frequency content is the most
important part in many applications, and
gives the signal its identity.
This part is called “Approximations”
• The high-frequency gives the ‘flavor’, and
is called “Details”
03/10/17
KEC/EIE/DIP
 Perceptually flat regions should be flat
 Image boundaries should be preserved (neither
blurred or sharpened)
 Texture details should not be lost
 Global contrast should be preserved
 No artifacts should be generated
03/10/17
KEC/EIE/DIP
 Different sources and type of noises
 How strong is the noise?
 Locally, it is hard to distinguish
◦ Texture vs. noise
◦ Object boundary vs. structural noise
03/10/17
KEC/EIE/DIP
 We need to distinguish spatially-localized events
(edges) from noise components
 Wavelet denoising attempts to remove the noise
present in the signal while preserving the signal
characteristics, regardless of its frequency
content.
 What are essential features of the data, and what
features are “noise”?
 To know more about noise components
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
Forward
Transform
Inverse
Transform
Denoising
operation
e.g.,
KLT
DCT
WT
e.g.,
Linear Wiener filtering
Nonlinear Thresholding
Noisy
signal
denoised
signal
03/10/17
KEC/EIE/DIP
 DWT of the image is calculated
 Resultant coefficients are passed through
threshold testing
 The coefficients < threshold are removed, others
shrinked
 Resultant coefficients are used for image
reconstruction with IWT.
03/10/17
KEC/EIE/DIP
 Methods Used
◦ Universal Thresholding
◦ Visu Shrink
◦ Sure Shrink
◦ Bayes Shrink
03/10/17
KEC/EIE/DIP
 Wavelet thresholding (first proposed by Donoho) is a
signal estimation technique that exploits the capabilities
of wavelet transform for signal denoising.
 It removes noise by killing coefficients that are
insignificant relative to some threshold.
 Types
◦ Universal or Global Thresholding
 Hard
 Soft
◦ SubBand Adaptive Thresholding
03/10/17
KEC/EIE/DIP





<
−
≤
+
≥
−
=
T
n
Y
T
n
Y
T
n
Y
T
n
Y
T
n
Y
n
X
|
]
[
|
0
]
[
]
[
]
[
]
[
]
[
~
KEC/EIE/DIP


 ≥
=
otherwise
T
n
Y
if
n
Y
n
X
0
|
]
[
|
]
[
]
[
~
DWT IWT
Thresholding
Y X
~
Soft thresholding
Hard thresholding
Noisy
signal
denoised
signal
03/10/17
03/10/17
KEC/EIE/DIP
 The hard thresholding operator is
defined as
D(U, λ) = U for all |U|> λ
 Hard threshold is a “keep or kill”
procedure and is more intuitively
appealing.
 The transfer function of the same is
shown here.
 The soft thresholding operator is
defined as
D(U, λ) = sgn(U)max(0, |U| - λ)
 Soft thresholding shrinks
coefficients above the threshold in
absolute value.
 The transfer function of the same
is shown here.
 The threshold
(N being the signal length, σ being the noise
variance) is well known in wavelet literature as
the Universal threshold.
σ
λ N
UNIV ln
2
=
03/10/17
KEC/EIE/DIP
 Apply Donoho’s universal threshold,
 M is the number of pixels.
 The threshold is usually high, overly smoothing.
M
log
2
σ
03/10/17
KEC/EIE/DIP
 Subband adaptive, a different threshold is
calculated for each detail subband.
 Choose the threshold that will minimize the
unbiased estimate of the risk:
 This optimization is straightforward, order the
wavelet coefficients in terms of magnitude and
choose the threshold as the wavelet coefficient
that minimizes the risk.
03/10/17
KEC/EIE/DIP
 Adaptive data-driven thresholding method
 Assume that the wavelet coefficients in each
subband is distributed as a Generalized Gaussian
Distribution (GGD)
 Find the threshold that minimized the Bayesian
risk.
03/10/17
KEC/EIE/DIP
WAVELET TOOLBOX
03/10/17
KEC/EIE/DIP
Function Name Purpose
 dwt2 - Single-level
decomposition
[cA, cH,cV,cD] = dwt2(X, 'wname')
 Wavedec2 - Multilevel 2-D wavelet
decomposition
[C,S] = wavedec2(X, N, 'wname')
03/10/17
KEC/EIE/DIP
 [cA1,cH1,cV1,cD1] = dwt2(X,'bior3.7');
 This generates the coefficient matrices of the
level-one approximation (cA1)
 and horizontal, vertical and diagonal details
(cH1,cV1,cD1, respectively).
03/10/17
KEC/EIE/DIP
 Type:
 [C,S] = wavedec2(X,2,'bior3.7');
 where X is the original image matrix, and 2 is the level of
decomposition.
 The coefficients of all the components of a second-level
decomposition (that is, the second-level approximation
and the first two levels of detail) are returned
concatenated into one vector, C. Argument S is a
bookkeeping matrix that keeps track of the sizes of each
component.
03/10/17
KEC/EIE/DIP
 Function Name Purpose
 detcoef2 - Extraction of detail
coefficients
D = detcoef2(C, S, 'wname', N)
[H,V,D] = detcoef2('all', C,S,N)
 appcoef2 - Extraction of
approximation coefficients
A = appcoef2(C,S,’wname’,N)
03/10/17
KEC/EIE/DIP
 To extract the level 2 approximation coefficients
from C:
 cA2 = appcoef2(C,S,'bior3.7',2);
03/10/17
KEC/EIE/DIP
 cH2 = detcoef2('h',C,S,2);
 cV2 = detcoef2('v',C,S,2);
 cD2 = detcoef2('d',C,S,2);
 cH1 = detcoef2('h',C,S,1);
 cV1 = detcoef2('v',C,S,1);
 cD1 = detcoef2('d',C,S,1);
[or]
03/10/17
KEC/EIE/DIP
 [cH2,cV2,cD2] = detcoef2('all',C,S,2);
 [cH1,cV1,cD1] = detcoef2('all',C,S,1);
 where the first argument ('h', 'v', or 'd') determines
the type of detail
 (horizontal, vertical, diagonal) extracted, and the
last argument determines the level.
03/10/17
KEC/EIE/DIP
Function Name Purpose
 ddencmp - Provide default values for
denoising and compression
[THR,SORH,KEEPAPP,CRIT] = ddencmp(IN1,IN2,X)
 wdencmp - Wavelet de-noising and
compression
[XC,CXC,LXC,PERF0,PERFL2] =
wdencmp('gbl',X,'wname',N,THR,SORH,KEEPAPP)
03/10/17
KEC/EIE/DIP
 Function Name Purpose
wthcoef2 Wavelet coefficient
thresholding 2-D
NC = wthcoef2('type',C, S, N, T, SORH)
03/10/17
KEC/EIE/DIP
Function Name
Purpose
 idwt2 - Single-level reconstruction
X = idwt2(cA, cH, cV,cD, 'wname')
 waverec2 - Full reconstruction
X = waverec2(C,S, 'wname')
 wrcoef2 - Selective reconstruction
X = wrcoef2('type',C,S,'wname',N)
03/10/17
KEC/EIE/DIP
 To find the inverse transform:
Xsyn = idwt2(cA1,cH1,cV1,cD1,'bior3.7');
 This reconstructs or synthesizes the original
image from the coefficients of the level 1
approximation and details.
03/10/17
KEC/EIE/DIP
 To reconstruct the level 2 approximation from C:
 A2 = wrcoef2('a',C,S,'bior3.7',2);
03/10/17
KEC/EIE/DIP
 To reconstruct the level 1 and 2 details
from C, type:
 H1 = wrcoef2('h',C,S,'bior3.7',1);
 V1 = wrcoef2('v',C,S,'bior3.7',1);
 D1 = wrcoef2('d',C,S,'bior3.7',1);
 H2 = wrcoef2('h',C,S,'bior3.7',2);
 V2 = wrcoef2('v',C,S,'bior3.7',2);
 D2 = wrcoef2('d',C,S,'bior3.7',2);
03/10/17
KEC/EIE/DIP
 To reconstruct the original image from the wavelet
decomposition structure:
 X0 = waverec2(C,S,'bior3.7');
 This reconstructs or synthesizes the original
image from the coefficients C of the multilevel
decomposition.
03/10/17
KEC/EIE/DIP
GUI FOR WAVELET ANALYSIS
03/10/17
KEC/EIE/DIP
 Starting the 2-D Wavelet Analysis Tool.
 From the MATLAB prompt, type:
wavemenu
 The Wavelet Tool Main Menu appears
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
 Click the Wavelet 2-D menu item.
 From the File menu, choose the Load Image option.
 Load the required Image
 ANALYZING AN IMAGE
 Using the Wavelet and Level menus located to
the upper right, determine the wavelet family, the
wavelet type, and the number of levels to be used for the
analysis.
 Click the Analyze button.
 Click on any decomposition component in the lower right
window.
03/10/17
KEC/EIE/DIP
 Click the Visualize button.
 Using Tree Mode Features.
Choose Tree from the View Mode menu.
03/10/17
KEC/EIE/DIP
 Saving Information to Disk
03/10/17
KEC/EIE/DIP
03/10/17
KEC/EIE/DIP
 From the Select thresholding method menu,
choose any item.
 Set the thresholding mode.
 Use the Sparsity slider to adjust the threshold
value
 Click the De-noise button.
03/10/17
KEC/EIE/DIP
◦Determination of a global optimal
threshold
◦ Spatially adjusting threshold based on
local statistics
Challenges with wavelet
thresholding
03/10/17
KEC/EIE/DIP
 It’s possible to remove the noise with little
loss of details.
 The idea of wavelet denoising based on
the assumption that the amplitude, rather
than the location, of the spectra of the
signal to be as different as possible for
that of noise.
03/10/17
KEC/EIE/DIP
THANK YOU
03/10/17
KEC/EIE/DIP

More Related Content

Similar to waveletbaseddenoising-170310061543.pdf

Paper id 212014133
Paper id 212014133Paper id 212014133
Paper id 212014133
IJRAT
 
Multimedia.pdf
Multimedia.pdfMultimedia.pdf
Multimedia.pdf
SunayanaShivthare1
 
A Video Watermarking Scheme to Hinder Camcorder Piracy
A Video Watermarking Scheme to Hinder Camcorder PiracyA Video Watermarking Scheme to Hinder Camcorder Piracy
A Video Watermarking Scheme to Hinder Camcorder Piracy
IOSR Journals
 
Broadcaster Notes
Broadcaster NotesBroadcaster Notes
Broadcaster Notes
Murat BAYKAL
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)
Shujun Li
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
Mazin Alwaaly
 
Jpeg
JpegJpeg
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Azharo7
 
23 an investigation on image 233 241
23 an investigation on image 233 24123 an investigation on image 233 241
23 an investigation on image 233 241
Alexander Decker
 
Motion Compensation With Prediction Error Using Ezw Wavelet Coefficients
Motion Compensation With Prediction Error Using Ezw Wavelet CoefficientsMotion Compensation With Prediction Error Using Ezw Wavelet Coefficients
Motion Compensation With Prediction Error Using Ezw Wavelet Coefficients
IJERA Editor
 
2.ppt
2.ppt2.ppt
Image compression and jpeg
Image compression and jpegImage compression and jpeg
Image compression and jpeg
theem college of engineering
 
Fundamentals of image processing
Fundamentals of image processingFundamentals of image processing
Fundamentals of image processing
RoufulAlamBhat1
 
Implementation of Noise Removal methods of images using discrete wavelet tran...
Implementation of Noise Removal methods of images using discrete wavelet tran...Implementation of Noise Removal methods of images using discrete wavelet tran...
Implementation of Noise Removal methods of images using discrete wavelet tran...
IRJET Journal
 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
Prabhat Kumar
 
Adaptive denoising technique for colour images
Adaptive denoising technique for colour imagesAdaptive denoising technique for colour images
Adaptive denoising technique for colour images
eSAT Journals
 
Post-Segmentation Approach for Lossless Region of Interest Coding
Post-Segmentation Approach for Lossless Region of Interest CodingPost-Segmentation Approach for Lossless Region of Interest Coding
Post-Segmentation Approach for Lossless Region of Interest Coding
sipij
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
nagwaAboElenein
 
CyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdfCyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdf
MohammadAzreeYahaya
 
Impulse noise removal in digital images
Impulse noise removal in digital imagesImpulse noise removal in digital images
Impulse noise removal in digital images
Mohan Raj
 

Similar to waveletbaseddenoising-170310061543.pdf (20)

Paper id 212014133
Paper id 212014133Paper id 212014133
Paper id 212014133
 
Multimedia.pdf
Multimedia.pdfMultimedia.pdf
Multimedia.pdf
 
A Video Watermarking Scheme to Hinder Camcorder Piracy
A Video Watermarking Scheme to Hinder Camcorder PiracyA Video Watermarking Scheme to Hinder Camcorder Piracy
A Video Watermarking Scheme to Hinder Camcorder Piracy
 
Broadcaster Notes
Broadcaster NotesBroadcaster Notes
Broadcaster Notes
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
 
Jpeg
JpegJpeg
Jpeg
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
23 an investigation on image 233 241
23 an investigation on image 233 24123 an investigation on image 233 241
23 an investigation on image 233 241
 
Motion Compensation With Prediction Error Using Ezw Wavelet Coefficients
Motion Compensation With Prediction Error Using Ezw Wavelet CoefficientsMotion Compensation With Prediction Error Using Ezw Wavelet Coefficients
Motion Compensation With Prediction Error Using Ezw Wavelet Coefficients
 
2.ppt
2.ppt2.ppt
2.ppt
 
Image compression and jpeg
Image compression and jpegImage compression and jpeg
Image compression and jpeg
 
Fundamentals of image processing
Fundamentals of image processingFundamentals of image processing
Fundamentals of image processing
 
Implementation of Noise Removal methods of images using discrete wavelet tran...
Implementation of Noise Removal methods of images using discrete wavelet tran...Implementation of Noise Removal methods of images using discrete wavelet tran...
Implementation of Noise Removal methods of images using discrete wavelet tran...
 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
 
Adaptive denoising technique for colour images
Adaptive denoising technique for colour imagesAdaptive denoising technique for colour images
Adaptive denoising technique for colour images
 
Post-Segmentation Approach for Lossless Region of Interest Coding
Post-Segmentation Approach for Lossless Region of Interest CodingPost-Segmentation Approach for Lossless Region of Interest Coding
Post-Segmentation Approach for Lossless Region of Interest Coding
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
CyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdfCyberSec_JPEGcompressionForensics.pdf
CyberSec_JPEGcompressionForensics.pdf
 
Impulse noise removal in digital images
Impulse noise removal in digital imagesImpulse noise removal in digital images
Impulse noise removal in digital images
 

Recently uploaded

Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
AbdullaAlAsif1
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
David Osipyan
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
MAGOTI ERNEST
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
University of Maribor
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
kejapriya1
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
IshaGoswami9
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
terusbelajar5
 

Recently uploaded (20)

Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
3D Hybrid PIC simulation of the plasma expansion (ISSS-14)
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
 

waveletbaseddenoising-170310061543.pdf

  • 2.  Digital Image Processing is the use of computer algorithms to perform image processing on digital images.  Advantages over analog image processing: - Allows a much wider range of algorithms to be applied to the input data - Avoid problems such as the build-up of noise and signal distortion during processing. 03/10/17 KEC/EIE/DIP
  • 3.  Two principal application areas: ◦ Improvement of pictorial information for human interpretation ◦ Processing of image data for storage, transmission and representation for autonomous machine perception 03/10/17 KEC/EIE/DIP
  • 4. ◦ An digital image may be defined as a two-dimensional quantity f(x,y) x and y are spatial coordinates and f is intensity or gray level at that point 03/10/17 KEC/EIE/DIP
  • 5.  Low-level IP Image preprocessing to reduce noise, contrast enhancement, image sharpening Both inputs and outputs are images  Mid-level IP Segmentation and description The inputs are generally images, but outputs are attributes extracted from those images (e.g., edges,contours… )  High-level IP Making sense of an ensemble of recognized objects 03/10/17 KEC/EIE/DIP
  • 6.  Goal: ◦ To Remove noise ◦ To Preserve useful information  Applications: ◦ Medical signal/image analysis (ECG, CT, MRI etc.) ◦ Data mining ◦ Radio astronomy image analysis 03/10/17 KEC/EIE/DIP
  • 7. Visually unpleasant Bad for compression Bad for analysis 03/10/17 KEC/EIE/DIP
  • 9.  Images are often contaminated by noise during i) acquisition ii) storage iii)transmission  Effect: Degradation at the quality of the images 03/10/17 KEC/EIE/DIP
  • 10. The sources of noise in digital images arise during image acquisition (digitization) and transmission ◦ Imaging sensors can be affected by ambient conditions ◦ Interference can be added to an image during transmission 03/10/17 KEC/EIE/DIP
  • 11. 03/10/17 KEC/EIE/DIP thermal imaging electrical interference ultrasound imaging physical interference
  • 12. 03/10/17 KEC/EIE/DIP  Simplified assumptions  Noise is independent of signal  Noise types  Independent of spatial location  Impulse noise  Additive white Gaussian noise  Spatially dependent  Periodic noise
  • 13.  Definition: is considered to be any measurement that is not part of the phenomena of interest.  Images are affected by different types of noise:  Gaussian noise  Salt and Pepper noise  Poisson Noise  Speckle Noise 03/10/17 KEC/EIE/DIP
  • 14.  Impulse noise Characterized by some portion of image pixels that are corrupted, leaving the remaining pixels unchanged. (Salt & Pepper Noise)  Additive noise A value from a certain distribution is added to each image pixel, for example, a Gaussian distribution.  Multiplicative noise The intensity of the noise varies with the signal intensity (e.g., speckle noise). 03/10/17 KEC/EIE/DIP
  • 15. W j H i j i X j i Y ≤ ≤ ≤ ≤      = 1 , 1 ) , ( 0 255 ) , ( Definition Each pixel in an image has the probability of p/2 (0<p<1) being contaminated by either a white dot (salt) or a black dot (pepper) with probability of p/2 with probability of p/2 with probability of 1-p noisy pixels clean pixels X: noise-free image, Y: noisy image 03/10/17 KEC/EIE/DIP
  • 16. 03/10/17 KEC/EIE/DIP 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 255 0 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 0 128 128 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 255 128 128 128 128 128 128 128 128 128 128 128 128 128 255 128 128 128 128 128 128 128 255 128 128
  • 17. 03/10/17 KEC/EIE/DIP Noisy image Y filtering algorithm Can we make the denoised image X as close to the noise-free image X as possible? ^ denoised image
  • 18. 03/10/17 KEC/EIE/DIP 225 225 225 226 226 226 226 226 225 225 255 226 226 226 225 226 226 226 225 226 0 226 226 255 255 226 225 0 226 226 226 226 225 255 0 225 226 226 226 255 255 225 224 226 226 0 225 226 226 225 225 226 255 226 226 228 226 226 225 226 226 226 226 226 0 225 225 226 226 226 226 226 225 225 226 226 226 226 226 226 225 226 226 226 226 226 226 226 226 226 225 225 226 226 226 226 225 225 225 225 226 226 226 226 225 225 225 226 226 226 226 226 225 225 225 226 226 226 226 226 226 226 226 226 226 226 226 226 Sorted: [0, 0, 0, 225, 225, 225, 226, 226, 226]
  • 20. W j H i N j i N j i N j i X j i Y ≤ ≤ ≤ ≤ + = 1 , 1 ), , 0 ( ~ ) , ( ), , ( ) , ( ) , ( 2 σ Definition Each pixel in an image is disturbed by a Gaussian random variable With zero mean and variance σ2 X: noise-free image, Y: noisy image 03/10/17 KEC/EIE/DIP
  • 21. 03/10/17 KEC/EIE/DIP Numerical Example 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 129 127 129 126 126 128 126 128 128 129 129 128 128 127 128 128 128 129 129 127 127 128 128 129 127 126 129 129 129 128 127 127 128 127 129 127 129 128 129 130 127 129 127 129 130 128 129 128 129 128 128 128 129 129 128 128 130 129 128 127 127 126
  • 22. 03/10/17 KEC/EIE/DIP  A different type of noise in the coherent imaging of objects caused by errors in data transmission  Speckle noise follows a gamma distribution  Presence of speckle is undesirable  damages radiometric resolution  affects the tasks of human interpretation and scene analysis.
  • 23. KEC/EIE/DIP Image Denoising Techniques  Spatial Domain Denoising • Conventional AND Adaptive filtering •Frequency Domain Denoising • Wiener Filtering •Wavelet Domain Denoising • Wavelet thresholding: Hard vs. Soft • Wavelet-domain shrinking 03/10/17
  • 24.  Spatial filters are designed to highlight or suppress specific features in an image, based on their spatial frequency.  Linear Filters - Mean Filters  Non Linear Filters - Median Filters 03/10/17 KEC/EIE/DIP
  • 25. A common filtering involves moving a 'window' of a few pixels in dimension (e.g. 3x3, 5x5, etc.) over each pixel in the image, applying a mathematical calculation using the pixel values under that window, and replacing the central pixel with the new value. 03/10/17 KEC/EIE/DIP
  • 26. Image of CHURN Farm Daedalus 1268 ATM 03/10/17 KEC/EIE/DIP
  • 27. A low-pass filter is designed to emphasise larger, homogeneous areas of similar tone and reduce the smaller detail in an image. Thus, low-pass filters generally serve to smooth the appearance of an image. 03/10/17 KEC/EIE/DIP
  • 28. A high-pass filter does the opposite, and serves to sharpen the appearance of fine detail in an image. 03/10/17 KEC/EIE/DIP
  • 29.
  • 33. Wide windows do not provide good localization at high frequencies. 03/10/17 KEC/EIE/DIP
  • 34. Use narrower windows at high frequencies. 03/10/17 KEC/EIE/DIP
  • 35. Narrow windows do not provide good localization at low frequencies. 03/10/17 KEC/EIE/DIP
  • 36. Use wider windows at low frequencies. 03/10/17 KEC/EIE/DIP
  • 39.  Overcomes the preset resolution problem of the STFT by using a variable length window: ◦ Use narrower windows at high frequencies for better time resolution. ◦ Use wider windows at low frequencies for better frequency resolution. 03/10/17 KEC/EIE/DIP
  • 45.  There are many different wavelets: Morlet Haar Daubechies 03/10/17 KEC/EIE/DIP
  • 46.  Sparsity: for functions typically found in practice, many of the coefficients in a wavelet representation are either zero or very small.  Linear-time complexity: many wavelet transformations can be accomplished in O(N) time. 03/10/17 KEC/EIE/DIP
  • 47. • Adaptability: wavelets can be adapted to represent a wide variety of functions (e.g., functions with discontinuities, functions defined on bounded domains etc.). – Well suited to problems involving images, open or closed curves, and surfaces of just about any variety. – Can represent functions with discontinuities or corners more efficiently (i.e., some have sharp corners themselves). 03/10/17 KEC/EIE/DIP
  • 48. 03/10/17 KEC/EIE/DIP Properties of Wavelets (cont’d) •Multiresolution analysis : •Multiresolution analysis: representation of a signal (e.g., an images) in more than one resolution/scale. •Features that might go undetected at one resolution may be easy to spot in another.
  • 49. • Noise filtering • Image compression – Fingerprint compression • Image fusion • Recognition • Image Matching and Retrieval 03/10/17 KEC/EIE/DIP
  • 50. One Stage Filtering gives Approximations and details: • The low-frequency content is the most important part in many applications, and gives the signal its identity. This part is called “Approximations” • The high-frequency gives the ‘flavor’, and is called “Details” 03/10/17 KEC/EIE/DIP
  • 51.  Perceptually flat regions should be flat  Image boundaries should be preserved (neither blurred or sharpened)  Texture details should not be lost  Global contrast should be preserved  No artifacts should be generated 03/10/17 KEC/EIE/DIP
  • 52.  Different sources and type of noises  How strong is the noise?  Locally, it is hard to distinguish ◦ Texture vs. noise ◦ Object boundary vs. structural noise 03/10/17 KEC/EIE/DIP
  • 53.  We need to distinguish spatially-localized events (edges) from noise components  Wavelet denoising attempts to remove the noise present in the signal while preserving the signal characteristics, regardless of its frequency content.  What are essential features of the data, and what features are “noise”?  To know more about noise components 03/10/17 KEC/EIE/DIP
  • 56.  DWT of the image is calculated  Resultant coefficients are passed through threshold testing  The coefficients < threshold are removed, others shrinked  Resultant coefficients are used for image reconstruction with IWT. 03/10/17 KEC/EIE/DIP
  • 57.  Methods Used ◦ Universal Thresholding ◦ Visu Shrink ◦ Sure Shrink ◦ Bayes Shrink 03/10/17 KEC/EIE/DIP
  • 58.  Wavelet thresholding (first proposed by Donoho) is a signal estimation technique that exploits the capabilities of wavelet transform for signal denoising.  It removes noise by killing coefficients that are insignificant relative to some threshold.  Types ◦ Universal or Global Thresholding  Hard  Soft ◦ SubBand Adaptive Thresholding 03/10/17 KEC/EIE/DIP
  • 60. 03/10/17 KEC/EIE/DIP  The hard thresholding operator is defined as D(U, λ) = U for all |U|> λ  Hard threshold is a “keep or kill” procedure and is more intuitively appealing.  The transfer function of the same is shown here.  The soft thresholding operator is defined as D(U, λ) = sgn(U)max(0, |U| - λ)  Soft thresholding shrinks coefficients above the threshold in absolute value.  The transfer function of the same is shown here.
  • 61.  The threshold (N being the signal length, σ being the noise variance) is well known in wavelet literature as the Universal threshold. σ λ N UNIV ln 2 = 03/10/17 KEC/EIE/DIP
  • 62.  Apply Donoho’s universal threshold,  M is the number of pixels.  The threshold is usually high, overly smoothing. M log 2 σ 03/10/17 KEC/EIE/DIP
  • 63.  Subband adaptive, a different threshold is calculated for each detail subband.  Choose the threshold that will minimize the unbiased estimate of the risk:  This optimization is straightforward, order the wavelet coefficients in terms of magnitude and choose the threshold as the wavelet coefficient that minimizes the risk. 03/10/17 KEC/EIE/DIP
  • 64.  Adaptive data-driven thresholding method  Assume that the wavelet coefficients in each subband is distributed as a Generalized Gaussian Distribution (GGD)  Find the threshold that minimized the Bayesian risk. 03/10/17 KEC/EIE/DIP
  • 66. Function Name Purpose  dwt2 - Single-level decomposition [cA, cH,cV,cD] = dwt2(X, 'wname')  Wavedec2 - Multilevel 2-D wavelet decomposition [C,S] = wavedec2(X, N, 'wname') 03/10/17 KEC/EIE/DIP
  • 67.  [cA1,cH1,cV1,cD1] = dwt2(X,'bior3.7');  This generates the coefficient matrices of the level-one approximation (cA1)  and horizontal, vertical and diagonal details (cH1,cV1,cD1, respectively). 03/10/17 KEC/EIE/DIP
  • 68.  Type:  [C,S] = wavedec2(X,2,'bior3.7');  where X is the original image matrix, and 2 is the level of decomposition.  The coefficients of all the components of a second-level decomposition (that is, the second-level approximation and the first two levels of detail) are returned concatenated into one vector, C. Argument S is a bookkeeping matrix that keeps track of the sizes of each component. 03/10/17 KEC/EIE/DIP
  • 69.  Function Name Purpose  detcoef2 - Extraction of detail coefficients D = detcoef2(C, S, 'wname', N) [H,V,D] = detcoef2('all', C,S,N)  appcoef2 - Extraction of approximation coefficients A = appcoef2(C,S,’wname’,N) 03/10/17 KEC/EIE/DIP
  • 70.  To extract the level 2 approximation coefficients from C:  cA2 = appcoef2(C,S,'bior3.7',2); 03/10/17 KEC/EIE/DIP
  • 71.  cH2 = detcoef2('h',C,S,2);  cV2 = detcoef2('v',C,S,2);  cD2 = detcoef2('d',C,S,2);  cH1 = detcoef2('h',C,S,1);  cV1 = detcoef2('v',C,S,1);  cD1 = detcoef2('d',C,S,1); [or] 03/10/17 KEC/EIE/DIP
  • 72.  [cH2,cV2,cD2] = detcoef2('all',C,S,2);  [cH1,cV1,cD1] = detcoef2('all',C,S,1);  where the first argument ('h', 'v', or 'd') determines the type of detail  (horizontal, vertical, diagonal) extracted, and the last argument determines the level. 03/10/17 KEC/EIE/DIP
  • 73. Function Name Purpose  ddencmp - Provide default values for denoising and compression [THR,SORH,KEEPAPP,CRIT] = ddencmp(IN1,IN2,X)  wdencmp - Wavelet de-noising and compression [XC,CXC,LXC,PERF0,PERFL2] = wdencmp('gbl',X,'wname',N,THR,SORH,KEEPAPP) 03/10/17 KEC/EIE/DIP
  • 74.  Function Name Purpose wthcoef2 Wavelet coefficient thresholding 2-D NC = wthcoef2('type',C, S, N, T, SORH) 03/10/17 KEC/EIE/DIP
  • 75. Function Name Purpose  idwt2 - Single-level reconstruction X = idwt2(cA, cH, cV,cD, 'wname')  waverec2 - Full reconstruction X = waverec2(C,S, 'wname')  wrcoef2 - Selective reconstruction X = wrcoef2('type',C,S,'wname',N) 03/10/17 KEC/EIE/DIP
  • 76.  To find the inverse transform: Xsyn = idwt2(cA1,cH1,cV1,cD1,'bior3.7');  This reconstructs or synthesizes the original image from the coefficients of the level 1 approximation and details. 03/10/17 KEC/EIE/DIP
  • 77.  To reconstruct the level 2 approximation from C:  A2 = wrcoef2('a',C,S,'bior3.7',2); 03/10/17 KEC/EIE/DIP
  • 78.  To reconstruct the level 1 and 2 details from C, type:  H1 = wrcoef2('h',C,S,'bior3.7',1);  V1 = wrcoef2('v',C,S,'bior3.7',1);  D1 = wrcoef2('d',C,S,'bior3.7',1);  H2 = wrcoef2('h',C,S,'bior3.7',2);  V2 = wrcoef2('v',C,S,'bior3.7',2);  D2 = wrcoef2('d',C,S,'bior3.7',2); 03/10/17 KEC/EIE/DIP
  • 79.  To reconstruct the original image from the wavelet decomposition structure:  X0 = waverec2(C,S,'bior3.7');  This reconstructs or synthesizes the original image from the coefficients C of the multilevel decomposition. 03/10/17 KEC/EIE/DIP
  • 80. GUI FOR WAVELET ANALYSIS 03/10/17 KEC/EIE/DIP
  • 81.  Starting the 2-D Wavelet Analysis Tool.  From the MATLAB prompt, type: wavemenu  The Wavelet Tool Main Menu appears 03/10/17 KEC/EIE/DIP
  • 83.  Click the Wavelet 2-D menu item.  From the File menu, choose the Load Image option.  Load the required Image  ANALYZING AN IMAGE  Using the Wavelet and Level menus located to the upper right, determine the wavelet family, the wavelet type, and the number of levels to be used for the analysis.  Click the Analyze button.  Click on any decomposition component in the lower right window. 03/10/17 KEC/EIE/DIP
  • 84.  Click the Visualize button.  Using Tree Mode Features. Choose Tree from the View Mode menu. 03/10/17 KEC/EIE/DIP
  • 85.  Saving Information to Disk 03/10/17 KEC/EIE/DIP
  • 87.  From the Select thresholding method menu, choose any item.  Set the thresholding mode.  Use the Sparsity slider to adjust the threshold value  Click the De-noise button. 03/10/17 KEC/EIE/DIP
  • 88. ◦Determination of a global optimal threshold ◦ Spatially adjusting threshold based on local statistics Challenges with wavelet thresholding 03/10/17 KEC/EIE/DIP
  • 89.  It’s possible to remove the noise with little loss of details.  The idea of wavelet denoising based on the assumption that the amplitude, rather than the location, of the spectra of the signal to be as different as possible for that of noise. 03/10/17 KEC/EIE/DIP