SlideShare uma empresa Scribd logo
1 de 41
Digital Image Processing
Unit-3
Image Restoration
Kamlesh Kumar Pathak
Assistant Professor, Dept. of Computer Sc.& Engineering
Radha Govind Engineering College Meerut
Email: kamleshcs_1987@yahoo.co.in
What is Image Restoration:
Image restoration aim to improve an image in some
predefined sense.
What about image enhancement?
Image enhancement also improves an image by
applying filters.
Difference:
Image Enhancement --- Subjective process
Image Restoration --- Objective Process
 Restoration tries to recover / restore degraded image by using a
prior knowledge of the degradation phenomenon.
 Restoration techniques focuses on:
1. Modeling the degradation
2. Applying inverse process in order to recover the original image.
Model of the Image Degradation / Restoration Process
 Degradation function along with some additive noise operates on
f(x, y) to produce degraded image g(x, y)
 Given g(x, y), some knowledge about the degradation function
H and additive noise η(x, y), objective of restoration is to obtain
estimate f’(x, y) of the original image.
 If H is linear, position invariant process then degraded image in
spatial domain is given by:
 h(x, y) = Spatial representation of H
 * indicates convolution
 Since convolution in Spatial domain = multiplication in
Frequency Domain
 We Assume that H is identity operator
 We deal only with degradation due to Noise
Noise Models: Noise in digital image arises during
1. Image Acquisition
2. Transmission
During Image Acquisition
 Environmental conditions (Light Levels)
 Quality of sensing element
During Transmission
 Interference during transmission
Spatial Properties of Noise:
1. With few exception we consider that noise is independent of spatial
coordinates.
2. We assume that noise is uncorrelated with respect to the image itself
(There is no correlation between image pixels and the values of noise
components)
Fourier Properties of Noise:
 Refers to the frequency contents of noise in the Fourier sense.
 If Fourier spectrum of noise is Constant, the noise is usually called
WHITE NOISE
Some Noise Probability Density Functions (PDFs):
 Gaussian Noise
 Rayleigh Noise
 Erlang (Gamma) Noise
 Exponential Noise
 Uniform Noise
 Impulse (Sal & Pepper Noise)
 Periodic Noise
Spatial Noise Descriptor
 Statistical behavior of the gray level values in the noise
component.
 Can be considered as random variables
 Characterized by Probability Density Functions (PDFs)
Gaussian / Normal Noise Model
1. Most frequently used.
2. PDF of Gaussian random variable z is given by:
 z  Gray level
 µ  Mean of average value of z
 σ  Standard Deviation of z
 σ2  Variance of z
When z is defined by this equation then
 About 70% of its values will be in the
range [(µ - σ),(µ + σ)] and
 About 95% of its values will be in the
range [(µ - 2σ),(µ + 2σ)]
Plot of function
Rayleigh Noise Model
PDF of Rayleigh Noise is given by:
 z  Gray level
 µ  Mean of average value of z
 σ2  Variance of z
 Basic shape of this density is skewed to
the right.
 Quite useful for approximating skewed
histograms.
Plot of function
Erlang (Gamma) Noise Model
PDF of Erlang Noise is given by:
 z  Gray level
 µ  Mean of average value of z
 σ2  Variance of z
 Above equation is also called
Erlang Density
 If denominator is Gamma function
then it is called Gamma density
Plot of function
 a > 0
 b = positive integer
Exponential Noise Model
PDF of Exponential Noise is given by:
 z  Gray level
 µ  Mean of average value of z
 σ2  Variance of z
 a > 0
 Special case of Erlang Density
Where b=1
Plot of function
Uniform Noise Model
PDF of Uniform Noise is given by:
 z  Gray level
 µ  Mean of average value of z
 σ2  Variance of z
Plot of function
Impulse (Salt & Pepper) Noise Model
PDF of Uniform Noise is given by:
 z  Gray level
 If b > a then b  light dot and a dark
dot
 If either Pa or Pb = 0  Unipolar
Impulse Noise otherwise Bipolar
Impulse Noise.
 If Neither probability is 0 and approximately equal then noise values will
resemble salt & pepper granules randomly distributed over the image.
 Also referred as Shot and Spike Noise
Plot of function
This test pattern is well-suited for illustrating the noise models, because it is composed
of simple, constant areas that span the grey scale from black to white in only three
increments. This facilitates visual analysis of the characteristics of the various noise
components added to the image.
Example
Restoration using Spatial Filtering
We can use spatial filters of different kinds to remove different
kinds of noise.
Arithmetic Mean Filter
Let Sxy represents the set of coordinates in a rectangular sub
image window of size m x n centred at (x, y).
This filter computes the average value of the corrupted image in
the area defined by Sxy.


xySts
tsg
mn
yxf
),(
),(
1
),(ˆ 1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
Implemented as simple smoothing filter
Well Suited for Gaussian / Uniform Noise
Geometric Mean Filter
Each restored pixel is given by the product of the pixels in the
sub image window, raised to the power 1/mn.
Achieves smoothing comparable to Arithmetic Mean Filter but
tends to lose less image details in the process.
Well Suited for Gaussian / Uniform Noise
mn
Sts xy
tsgyxf
1
),(
),(),(ˆ








 
Harmonic Mean Filter
Works well for salt noise but fails for pepper noise.
Also does well for Gaussian Noise


xySts tsg
mn
yxf
),( ),(
1
),(ˆ
Example:
Original
Image
Image
Corrupted
By Gaussian
Noise
After A 3*3
Geometric
Mean Filter
After A 3*3
Arithmetic
Mean Filter
Order Statistic Filter
Result is based on the ranking / ordering of the pixels contained
in the image area encompassed by the filter.
Median Filter
)},({),(ˆ
),(
tsgmedianyxf
xySts 

Effective for both uni-polar and bipolar impulse noise.
Excellent at noise removal, without the smoothing effects that
can occur with other smoothing filters
Max Filter Good for Pepper Noise
Min Filter Good for Salt Noise
)},({max),(ˆ
),(
tsgyxf
xySts 

)},({min),(ˆ
),(
tsgyxf
xySts 

Mid Point Filter Good for Gaussian / Uniform Noise



 

)},({min)},({max
2
1
),(ˆ
),(),(
tsgtsgyxf
xyxy StsSts
Image
Corrupted
By Salt And
Pepper Noise
Result of 1
Pass With A
3*3 Median
Filter
Result of 2
Passes With
A 3*3 Median
Filter
Result of 3
Passes With
A 3*3 Median
Filter
Example:
Image
Corrupted
By Pepper
Noise
Image
Corrupted
By Salt
Noise
Result Of
Filtering
Above
With A 3*3
Min Filter
Result Of
Filtering
Above
With A 3*3
Max Filter
Example:
Image
Corrupted
By Uniform
Noise
Image Further
Corrupted
By Salt and
Pepper Noise
Filtered By
5*5 Arithmetic
Mean Filter
Filtered By
5*5 Median
Filter
Filtered By
5*5 Geometric
Mean Filter
Filtered By
5*5 Alpha-Trimmed
Mean Filter
Example (Combined):
Periodic Noise
Typically arises due to electrical / Electro-
mechanical interference during image
acquisition.
Spatially dependent noise.
Can be reduced significantly via Frequency
Domain Filtering.
Parameters can be estimated by inspecting
the Frequency Spectrum of the image.
Periodic noise tend to produce frequency
spikes
Image corrupted by
Sinusoidal noise
Spectrum (Each pair of
conjugate impulses
corresponds to one sine wave)
Periodic Noise Reduction by Frequency Domain Filtering
Removing periodic noise form an image involves removing a
particular range of frequencies from that image
Bandreject Filter
Bandpass Filters
Notch Filter
Bandreject Filter
Removes / Attenuates a band of frequencies about the origin of the Fourier
Transform.
Ideal Bandreject Filter:












2
),(1
2
),(
2
0
2
),(1
),(
0
00
0
W
DvuDif
W
DvuD
W
Dif
W
DvuDif
vuH
D(u, v) = Distance of point from the origin
W = Width of the band
D0 = Radial Centre
Butterworth Bandreject Filter:
Gaussian Bandreject Filter:
Ideal Band
Reject Filter
Butterworth
Band Reject
Filter (of order 1)
Gaussian
Band Reject
Filter
Image corrupted by
sinusoidal noise
Fourier spectrum of
corrupted image
Butterworth band
reject filter
Filtered image
Example:
Inverse Filtering
An approach to restore an image.
Compute an estimate F’( u, v) of the transform of the original image by:
Divisions are made between individual elements of the functions.
Inverse Filtering…
Above Equation concludes that:
Even if we know degradation function, we can not recover the undegraded
image [Inverse Fourier Transform of F(u, v)] exactly because
N(u, v) is random function whose Fourier Transform is not known.
If degradation has ZERO or less value then N(u, v) / H(u, v) dominates the
estimated F’(u, v).
No explicit provision for handling Noise.
Maximum Mean Square Error (Wiener) Filtering
 Incorporates both degradation function and statistical characteristics of
noise into restoration process.
 Considers images and noise as random process.
 Find an estimate f’ of the uncorrupted image f such that mean square error
between them is minimized. Error measure is given by:
 E{.} = Expected value of the argument
 Assumptions:
 image and noise are uncorrelated.
 One or other has Zero mean
 Gray levels in the estimate are a linear function of levels in the
degraded image.
Maximum Mean Square Error (Wiener) Filtering…
 Based on these conditions:
Singularity & Ill-condition?
Today After Lunch

Mais conteúdo relacionado

Mais procurados

Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression modelslavanya marichamy
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan Acharjya
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Kalyan Acharjya
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpeningarulraj121
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesCristina Pérez Benito
 

Mais procurados (20)

Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpening
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 
Unit ii
Unit iiUnit ii
Unit ii
 

Destaque

5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1Gichelle Amon
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquessakshij91
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...Hemantha Kulathilake
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIPbabak danyal
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 

Destaque (9)

SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 

Semelhante a Unit3 dip

Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Lecture 6-2023.pdf
Lecture 6-2023.pdfLecture 6-2023.pdf
Lecture 6-2023.pdfssuserff72e4
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptxwdwd10
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)Shajun Nisha
 
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...IJEACS
 
Image restoration1
Image restoration1Image restoration1
Image restoration1moorthim7
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithmsMohammad Sunny
 
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...CSCJournals
 
Comparison of Denoising Filters on Greyscale TEM Image for Different Noise
Comparison of Denoising Filters on Greyscale TEM Image for  Different NoiseComparison of Denoising Filters on Greyscale TEM Image for  Different Noise
Comparison of Denoising Filters on Greyscale TEM Image for Different NoiseIOSR Journals
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)Mathankumar S
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image EnhancementMathankumar S
 

Semelhante a Unit3 dip (20)

Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Lecture 6-2023.pdf
Lecture 6-2023.pdfLecture 6-2023.pdf
Lecture 6-2023.pdf
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
M.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit ivM.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit iv
 
Gg2411291135
Gg2411291135Gg2411291135
Gg2411291135
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
 
PID3474431
PID3474431PID3474431
PID3474431
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
 
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...
Performance Assessment of Several Filters for Removing Salt and Pepper Noise,...
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
 
vs.pptx
vs.pptxvs.pptx
vs.pptx
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
 
image restoration.ppt
image restoration.pptimage restoration.ppt
image restoration.ppt
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
 
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
 
Comparison of Denoising Filters on Greyscale TEM Image for Different Noise
Comparison of Denoising Filters on Greyscale TEM Image for  Different NoiseComparison of Denoising Filters on Greyscale TEM Image for  Different Noise
Comparison of Denoising Filters on Greyscale TEM Image for Different Noise
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 

Unit3 dip

  • 1. Digital Image Processing Unit-3 Image Restoration Kamlesh Kumar Pathak Assistant Professor, Dept. of Computer Sc.& Engineering Radha Govind Engineering College Meerut Email: kamleshcs_1987@yahoo.co.in
  • 2. What is Image Restoration: Image restoration aim to improve an image in some predefined sense. What about image enhancement? Image enhancement also improves an image by applying filters.
  • 3. Difference: Image Enhancement --- Subjective process Image Restoration --- Objective Process  Restoration tries to recover / restore degraded image by using a prior knowledge of the degradation phenomenon.  Restoration techniques focuses on: 1. Modeling the degradation 2. Applying inverse process in order to recover the original image.
  • 4. Model of the Image Degradation / Restoration Process
  • 5.  Degradation function along with some additive noise operates on f(x, y) to produce degraded image g(x, y)  Given g(x, y), some knowledge about the degradation function H and additive noise η(x, y), objective of restoration is to obtain estimate f’(x, y) of the original image.  If H is linear, position invariant process then degraded image in spatial domain is given by:  h(x, y) = Spatial representation of H  * indicates convolution
  • 6.  Since convolution in Spatial domain = multiplication in Frequency Domain  We Assume that H is identity operator  We deal only with degradation due to Noise
  • 7. Noise Models: Noise in digital image arises during 1. Image Acquisition 2. Transmission During Image Acquisition  Environmental conditions (Light Levels)  Quality of sensing element During Transmission  Interference during transmission
  • 8. Spatial Properties of Noise: 1. With few exception we consider that noise is independent of spatial coordinates. 2. We assume that noise is uncorrelated with respect to the image itself (There is no correlation between image pixels and the values of noise components) Fourier Properties of Noise:  Refers to the frequency contents of noise in the Fourier sense.  If Fourier spectrum of noise is Constant, the noise is usually called WHITE NOISE
  • 9. Some Noise Probability Density Functions (PDFs):  Gaussian Noise  Rayleigh Noise  Erlang (Gamma) Noise  Exponential Noise  Uniform Noise  Impulse (Sal & Pepper Noise)  Periodic Noise
  • 10. Spatial Noise Descriptor  Statistical behavior of the gray level values in the noise component.  Can be considered as random variables  Characterized by Probability Density Functions (PDFs)
  • 11.
  • 12. Gaussian / Normal Noise Model 1. Most frequently used. 2. PDF of Gaussian random variable z is given by:  z  Gray level  µ  Mean of average value of z  σ  Standard Deviation of z  σ2  Variance of z When z is defined by this equation then  About 70% of its values will be in the range [(µ - σ),(µ + σ)] and  About 95% of its values will be in the range [(µ - 2σ),(µ + 2σ)] Plot of function
  • 13. Rayleigh Noise Model PDF of Rayleigh Noise is given by:  z  Gray level  µ  Mean of average value of z  σ2  Variance of z  Basic shape of this density is skewed to the right.  Quite useful for approximating skewed histograms. Plot of function
  • 14. Erlang (Gamma) Noise Model PDF of Erlang Noise is given by:  z  Gray level  µ  Mean of average value of z  σ2  Variance of z  Above equation is also called Erlang Density  If denominator is Gamma function then it is called Gamma density Plot of function  a > 0  b = positive integer
  • 15. Exponential Noise Model PDF of Exponential Noise is given by:  z  Gray level  µ  Mean of average value of z  σ2  Variance of z  a > 0  Special case of Erlang Density Where b=1 Plot of function
  • 16. Uniform Noise Model PDF of Uniform Noise is given by:  z  Gray level  µ  Mean of average value of z  σ2  Variance of z Plot of function
  • 17. Impulse (Salt & Pepper) Noise Model PDF of Uniform Noise is given by:  z  Gray level  If b > a then b  light dot and a dark dot  If either Pa or Pb = 0  Unipolar Impulse Noise otherwise Bipolar Impulse Noise.  If Neither probability is 0 and approximately equal then noise values will resemble salt & pepper granules randomly distributed over the image.  Also referred as Shot and Spike Noise Plot of function
  • 18. This test pattern is well-suited for illustrating the noise models, because it is composed of simple, constant areas that span the grey scale from black to white in only three increments. This facilitates visual analysis of the characteristics of the various noise components added to the image. Example
  • 19.
  • 20.
  • 21. Restoration using Spatial Filtering We can use spatial filters of different kinds to remove different kinds of noise. Arithmetic Mean Filter Let Sxy represents the set of coordinates in a rectangular sub image window of size m x n centred at (x, y). This filter computes the average value of the corrupted image in the area defined by Sxy.   xySts tsg mn yxf ),( ),( 1 ),(ˆ 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 Implemented as simple smoothing filter Well Suited for Gaussian / Uniform Noise
  • 22. Geometric Mean Filter Each restored pixel is given by the product of the pixels in the sub image window, raised to the power 1/mn. Achieves smoothing comparable to Arithmetic Mean Filter but tends to lose less image details in the process. Well Suited for Gaussian / Uniform Noise mn Sts xy tsgyxf 1 ),( ),(),(ˆ          
  • 23. Harmonic Mean Filter Works well for salt noise but fails for pepper noise. Also does well for Gaussian Noise   xySts tsg mn yxf ),( ),( 1 ),(ˆ
  • 24. Example: Original Image Image Corrupted By Gaussian Noise After A 3*3 Geometric Mean Filter After A 3*3 Arithmetic Mean Filter
  • 25. Order Statistic Filter Result is based on the ranking / ordering of the pixels contained in the image area encompassed by the filter. Median Filter )},({),(ˆ ),( tsgmedianyxf xySts   Effective for both uni-polar and bipolar impulse noise. Excellent at noise removal, without the smoothing effects that can occur with other smoothing filters
  • 26. Max Filter Good for Pepper Noise Min Filter Good for Salt Noise )},({max),(ˆ ),( tsgyxf xySts   )},({min),(ˆ ),( tsgyxf xySts  
  • 27. Mid Point Filter Good for Gaussian / Uniform Noise       )},({min)},({max 2 1 ),(ˆ ),(),( tsgtsgyxf xyxy StsSts
  • 28. Image Corrupted By Salt And Pepper Noise Result of 1 Pass With A 3*3 Median Filter Result of 2 Passes With A 3*3 Median Filter Result of 3 Passes With A 3*3 Median Filter Example:
  • 29. Image Corrupted By Pepper Noise Image Corrupted By Salt Noise Result Of Filtering Above With A 3*3 Min Filter Result Of Filtering Above With A 3*3 Max Filter Example:
  • 30. Image Corrupted By Uniform Noise Image Further Corrupted By Salt and Pepper Noise Filtered By 5*5 Arithmetic Mean Filter Filtered By 5*5 Median Filter Filtered By 5*5 Geometric Mean Filter Filtered By 5*5 Alpha-Trimmed Mean Filter Example (Combined):
  • 31. Periodic Noise Typically arises due to electrical / Electro- mechanical interference during image acquisition. Spatially dependent noise. Can be reduced significantly via Frequency Domain Filtering. Parameters can be estimated by inspecting the Frequency Spectrum of the image. Periodic noise tend to produce frequency spikes Image corrupted by Sinusoidal noise Spectrum (Each pair of conjugate impulses corresponds to one sine wave)
  • 32. Periodic Noise Reduction by Frequency Domain Filtering Removing periodic noise form an image involves removing a particular range of frequencies from that image Bandreject Filter Bandpass Filters Notch Filter
  • 33. Bandreject Filter Removes / Attenuates a band of frequencies about the origin of the Fourier Transform. Ideal Bandreject Filter:             2 ),(1 2 ),( 2 0 2 ),(1 ),( 0 00 0 W DvuDif W DvuD W Dif W DvuDif vuH D(u, v) = Distance of point from the origin W = Width of the band D0 = Radial Centre
  • 35. Ideal Band Reject Filter Butterworth Band Reject Filter (of order 1) Gaussian Band Reject Filter
  • 36. Image corrupted by sinusoidal noise Fourier spectrum of corrupted image Butterworth band reject filter Filtered image Example:
  • 37. Inverse Filtering An approach to restore an image. Compute an estimate F’( u, v) of the transform of the original image by: Divisions are made between individual elements of the functions.
  • 38. Inverse Filtering… Above Equation concludes that: Even if we know degradation function, we can not recover the undegraded image [Inverse Fourier Transform of F(u, v)] exactly because N(u, v) is random function whose Fourier Transform is not known. If degradation has ZERO or less value then N(u, v) / H(u, v) dominates the estimated F’(u, v). No explicit provision for handling Noise.
  • 39. Maximum Mean Square Error (Wiener) Filtering  Incorporates both degradation function and statistical characteristics of noise into restoration process.  Considers images and noise as random process.  Find an estimate f’ of the uncorrupted image f such that mean square error between them is minimized. Error measure is given by:  E{.} = Expected value of the argument  Assumptions:  image and noise are uncorrelated.  One or other has Zero mean  Gray levels in the estimate are a linear function of levels in the degraded image.
  • 40. Maximum Mean Square Error (Wiener) Filtering…  Based on these conditions: