SlideShare a Scribd company logo
Image Restoration
EE 528 Digital Image Processing
All images taken from Gonzalez and Woods
online slides
http://www.imageprocessingplace.com/DIP/dip
_faculty/classroom_presentations_downloads
.htm
Material mostly based on A.K. Jain’s book
Some topics taken from Gonzalez Woods
Intuition & images on slides, math details will
be covered in class or is in the book
Image Enhancement or Restoration
Most of what we learnt in Image
Enhancement chapter can also be classified
as Image Restoration techniques. Specifically
Linear filtering (low pass for noise reduction, high
pass for edge sharpening, band-pass for both)
Median filtering (for salt and pepper noise),
Log-domain filtering and other nonlinear
techniques
Inverse & Pseudo-inverse Filters
Inverse Filter
Assumes no noise, only blurring.
Blurring filter known
In case of noise
If blurring filter has zeros at some frequencies (which it
will since it is a low-pass filter), those frequencies will be
amplified in the noise
Pseudo-inverse filter:
removes the problem at zero (or near zero) frequencies,
but still amplifies noise at other frequencies where the
blurring filter response is not zero but small
Image blurred by atmospheric turbulence
& with additive noise
Inverse v/s Pseudo-inverse filtering
Wiener Smoother
Assumes image is blurred and has additive noise
(independent of image)
Need to know
Blurring filter
Noise covariance
True image autocorrelation
Mean of noise & of true image (or assume zero mean)
Gives “linear MMSE” estimate: linear filter with least
expected value of MSE w.r.t. the true image
Truly MMSE when the observed and true image are
jointly Gaussian
Motion blurred image
Pseudo-inverse v/s Wiener
Column 2:
Pseudo-inverse
Column 3:
Wiener
Maximum noise
in row 1, least in
row 3
Wiener smoother
Observed: v. True: u, convolution: *
Can use orthogonality argument to show that the
MMSE restored image uhat = g * v, where g (Wiener
smoother) satisfies
g(k,l)*rvv(k,l) = ruv(k,l) for all (k,l), or equivalently
G(f1,f2) = Suv(f1,f2) Svv
-1(f
1
,f
2
)
Assume v = u * h + n, n: noise
Need to know ruu, h, rnn. h: blurring filter
Compute ruv = h(-k,-l) * ruu(k,l)
Compute rvv = h(k,l) * ruv + rnn
Properties of Wiener Smoother
Non-causal: okay for image processing
For time series applications: need to find the best
causal filter that minimizes expected MSE: more
complicated: Wiener filter
Wiener computes correlations etc assuming all signals
are zero mean
If not, then subtract out the means first and then
compute auto-correlations (in other words, always
using auto-covariances)
Output noise is NOT white.
2D Wiener: not separable even if h, ruu are
FIR Wiener
Exact Wiener filter or smoother are infinite
impulse response (IIR)
IIR: expensive to implement
Many IIR coefficients are small, one solution
is to truncate it. Or
Design an FIR Wiener
Find the best (least expected MSE) filter with
(2M+1) x (2M+1) taps
This will give lower MSE than just truncating the
IIR filter
FIR Wiener Algorithm
Assume noise is white and assume noise
power known, i.e. σn
2 known
Estimate rvv from the observed image
Solve for ruv(k,l) from
rvv (k,l) = ruv (k,l) * h(k,l) + σn
2 δ(k,l)
Assume ruv zero for more than a few taps
Need ruv(k,l) only for –M <= k,l <= M
g satisfies
rvv (k,l) *g(k,l) = ruv (k,l), -M <= k,l <= M
FIR Wiener – No blurring
h = identity
Only need to know SNR σu
2 / σn
2. Say SNR = a
σn
2 = rvv(0,0) / (1+a)
ruu(0,0) = a rvv(0,0) / (1+a)
ruu(k,l) = rvv(k,l) if k ≠ 0 or l ≠ 0
ruv(k,l) = ruu(k,l)
Compute different Wiener filters for diff image blocks
Choose different length Wieners, e.g. choose M s.t.
output SNR σu
2 / σe
2 is roughly constant
Need a longer tap Wiener if more noise or more
blurring.
If zero noise, Wiener approaches inverse filter
Summary
Wiener smoother
Wiener filter or causal Wiener (mostly needed for 1D)
FIR Wiener (causal or non-causal)
Computing ruu
Can also use AR model to get ruu , i.e. use a clean image to
estimate an AR model for the image: that can be used to
compute ruu
Smoothing splines
Main idea: find the “smoothest” function that
“fits the data (observed image)”, i.e. error
between the observed image and smooth
function is below a threshold
“Smoothness” quantified in various ways, one
way is to minimize roughness, i.e. find the
function that “fits the data” and has the lowest
sum of double derivatives
This is called a smoothing spline
Constrained Least Squares
Find a maximally “smooth” restored image,
i.e. find uhat so that
J = || q(m,n) * uhat(m,n)|| is minimized and
||v(m,n) – h(m,n)*uhat(m,n)||2 <= ε2 #
Solution:
Uhat = H* V / (|H|2+ γ|Q|2)
γ computed s.t. # satisfied with equality
This is the Wiener smoother when Snn = γ
and Suu = 1/|Q|2
Usually choose q to be the discrete Laplacian
Smoothing splines is same as constrained LS
when h = identity, i.e. no blurring
Constrained LS solution
Geometric distortion
Also called “rubber-sheet” transformations
Image pixel locations distorted, e.g. translate
the image or rotate it or affine deform the
image (due to camera motion)
Consider distorted image v generated by
v(x’,y’) = u(x,y), x’ = r(x,y), y’ = s(x,y)
r(x,y) = c1 x + c2 y + c3 xy + c4
s(x,y) = c5 x + c6 y + c7 xy + c8
Restoring geometric distortions
Step 1: estimate the distortion, i.e. find a set
of 4 (or more) corresponding points in the two
images and compute the coefficients c1 to c8
Step 2:
uhat(x,y) = g( r(x,y), s(x,y) )
r(x,y), s(x,y) may not be integers
Need grey scale interpolation
Zeroth order hold: g( round( r(x,y) ), round( s(x,y) ) )
Bilinear: use floor and ceil of r(x,y), s(x,y) to compute
interpolating function parameters
Corresponding points
Geometric distortion/restoration
Next class
Important difference from other
restoration methods
To estimate the geometric distortion, i.e. c1 through
c8, need at least 4 corresponding point locations in
the true image and the distorted image
Correcting for geometric distortion is actually an Image
Registration technique: assumes both images given
Other restoration techniques only use the observed
image and “some” other information (e.g.
autocorrelation of the true image or at least
knowledge of the blurring filter)
More on Geometric distortions
Finding corresponding points is the difficult
problem
Commonly used techniques
Feature matching
Color, KLT tracker, local histogram, local PCA, texture
Corner detection methods
Curvature vertices (maxima/min/discontinuities)
Find the geometric distortion between two whole
contours
Jointly register & segment
Registering 2 contours
Contours may have different lengths (if there
has been a size change). Solution:
Sub-sample, uniformly along arclength, both
contours to a fixed number of points M. Use these
points as “corresponding points”
Computing arclength: in class
To do the above robustly: B-spline control points
Easier but approx solution: assume the points you
get are already uniformly sampled, just resample
to a fixed number of points M
Details in class
Notch filter
Filter out a certain frequency or a certain
small band of frequencies
All called “band-reject” filter
Easiest to implement in the frequency domain
Image corrupted by sinusoidal noise
Notch filtering/Band-reject filtering
Another example
Speckle noise
Occurs in all coherent imaging systems
Examples
Ultrasound
SAR (Synthetic Aperture Radar)
Effect of interference of energy from
randomly distributed scatters, too small to be
resolved by the imaging system
Occurs when object roughness is of the order
of the incident radiation’s wavelength
Speckle noise model
Model as infinite sum of i.i.d. phasors with random
amplitude and phase, multiplied with the image
Details in class
If low resolution image, an approximate model is
v(x,y) = u(x,y) s(x,y) + n(x,y)
n = additive detector noise (already discussed)
s = speckle noise
s(x,y) = sum of squared magnitude of iid phasors
s(x,y): iid exponential with parameter 1/ (2σa
2)
Details in class
Similar to “multi-path fading” in communication channels
Ultrasound speckle images
http://www.ljbdev.com/speckle.html
Speckle noise reduction
Simplest: if multiple ultrasound images available:
average them
If the multiple images are not “registered” (geometric
distortion b/w them), first register as studied in last class,
then average
Effect of averaging: the speckle will be more constant
across pixels, but will NOT go away
Techniques for multiplicative noise
Homomorphic filtering
Take logarithm: log v(x,y). log s(x,y) is then additive noise.
Assume it to be Gaussian and apply a Wiener filter to log
v(x,y)
Assumption holds strictly only if s(x,y) were log-normal
which it is not. But Wiener still works!
Another application of Homomorphic
filtering
Any image consists of an illumination component
and a reflectance component
I(x,y) = i(x,y) r(x,y)
Illumination: i, Reflectance: r
We are interested in reflectance only: which is due
to object texture
Illumination will be non-uniform if light falling at an
angle. Want to get rid of it.
Take log of image, take DFT, suppress low
frequencies (assumes illumination is low freq), take
I-DFT, and exp
Bayesian methods for Restoration
General idea:
Given p(v|u) (data term or likelihood) & p(u) (prior)
Estimate maximizer of p(u|v) : called the MAP solution
Wiener is MAP when u and v are jointly Gaussian
Weiner gives E[u|v] = conditional mean = MMSE estimate
MAP is maxu p(u|v)
Since p(u|v) is Gaussian, MAP = conditional mean
Constrained LS or actually Regularized LS
Min ||q*u||2 + ||v – H u||Rn
2
Solution is Bayesian with a smoothness prior q
Nonlinear MAP: v = f(Hu) + n, prior on u given
Blind De-convolution: one solution
Computing H(f1,f2)
Compute Svv(f1,f2) from observed image
Assume Suu(f1,f2) known (FT of ruu) from training data
Assume Snn(f1,f2) = σn
2 is known
log |H|2 = log (Svv – Snn) – log Suu
This does not give the phase of H: in many cases H
is linear phase (e.g. due to motion blur) or zero
phase. If need phase: compute Suv to get it
Use H in the Wiener filter
Models for the true image
Wiener filter requires ruu
It may be estimated from rvv, but there you are assuming the
noise covariance is known and h (blurring function) is known
When h unknown, definitely need to know ruu to estimate h
One solution to obtain ruu: assume you have at least one true
image available as “training data”
Model the image as an MRF (Markov Random Field)
Usually suffices to use the 4 nearest neighbors for prediction
Details in class or on pages 206 -208 of AK Jain.
More on Blind De-convolution

More Related Content

What's hot

Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
Kalyan Acharjya
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
Mohammad Sunny
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Shajun Nisha
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
Mathankumar S
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
Ayushi Gagneja
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Image denoising
Image denoisingImage denoising
Image denoising
Haitham Ahmed
 
Wavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLABWavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLAB
ajayhakkumar
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
Imran Khan
 
Chapter 3 Image Processing: Basic Transformation
Chapter 3 Image Processing:  Basic TransformationChapter 3 Image Processing:  Basic Transformation
Chapter 3 Image Processing: Basic Transformation
Varun Ojha
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
Simranjit Singh
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image Enhancement
Varun Ojha
 
Module 31
Module 31Module 31
Module 31
UllasSS1
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
Wael Sharba
 
Lect5 v2
Lect5 v2Lect5 v2
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
Mostafa G. M. Mostafa
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
ShardaSalunkhe1
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 

What's hot (20)

Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Wavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLABWavelet Applications in Image Denoising Using MATLAB
Wavelet Applications in Image Denoising Using MATLAB
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Chapter 3 Image Processing: Basic Transformation
Chapter 3 Image Processing:  Basic TransformationChapter 3 Image Processing:  Basic Transformation
Chapter 3 Image Processing: Basic Transformation
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image Enhancement
 
Module 31
Module 31Module 31
Module 31
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lect5 v2
Lect5 v2Lect5 v2
Lect5 v2
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 

Similar to Image restoration1

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
 
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error normRobust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
Tuan Q. Pham
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
Varun Ojha
 
Image Degradation & Resoration
Image Degradation & ResorationImage Degradation & Resoration
Image Degradation & Resoration
Sanjay Saha
 
image restoration.ppt
image restoration.pptimage restoration.ppt
image restoration.ppt
RajarajeswariKannan
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
Mohammed Kamel
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
BHAGYAPRASADBUGGE
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
Taymoor Nazmy
 
Design Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive WaveletDesign Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive Wavelet
IJERD Editor
 
Image denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic NoisesImage denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic Noises
SakshiAggarwal85
 
vs.pptx
vs.pptxvs.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
Shri Shankaracharya College, Bhilai,Junwani
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
nagwaAboElenein
 
1873 1878
1873 18781873 1878
1873 1878
Editor IJARCET
 
1873 1878
1873 18781873 1878
1873 1878
Editor IJARCET
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation Method
Editor IJCATR
 
Frequency domain methods
Frequency domain methods Frequency domain methods
Frequency domain methods
thanhhoang2012
 
Image Processing With Sampling and Noise Filtration in Image Reconigation Pr...
Image Processing With Sampling and Noise Filtration in Image  Reconigation Pr...Image Processing With Sampling and Noise Filtration in Image  Reconigation Pr...
Image Processing With Sampling and Noise Filtration in Image Reconigation Pr...
International Journal of Engineering Inventions www.ijeijournal.com
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
Malik obeisat
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
wdwd10
 

Similar to Image restoration1 (20)

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)
 
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error normRobust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
Robust Super-Resolution by minimizing a Gaussian-weighted L2 error norm
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
Image Degradation & Resoration
Image Degradation & ResorationImage Degradation & Resoration
Image Degradation & Resoration
 
image restoration.ppt
image restoration.pptimage restoration.ppt
image restoration.ppt
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
 
Design Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive WaveletDesign Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive Wavelet
 
Image denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic NoisesImage denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic Noises
 
vs.pptx
vs.pptxvs.pptx
vs.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
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
1873 1878
1873 18781873 1878
1873 1878
 
1873 1878
1873 18781873 1878
1873 1878
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation Method
 
Frequency domain methods
Frequency domain methods Frequency domain methods
Frequency domain methods
 
Image Processing With Sampling and Noise Filtration in Image Reconigation Pr...
Image Processing With Sampling and Noise Filtration in Image  Reconigation Pr...Image Processing With Sampling and Noise Filtration in Image  Reconigation Pr...
Image Processing With Sampling and Noise Filtration in Image Reconigation Pr...
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
 

Recently uploaded

按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
yizxn4sx
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
6oo02s6l
 
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
xuqdabu
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
lorraineandreiamcidl
 
Production.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd ddddddddddddddddddddddddddddddddddProduction.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd dddddddddddddddddddddddddddddddddd
DanielOliver74
 
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
xuqdabu
 
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
zpc0z12
 
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
nudduv
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
snfdnzl7
 
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
kuehcub
 
按照学校原版(QU文凭证书)皇后大学毕业证快速办理
按照学校原版(QU文凭证书)皇后大学毕业证快速办理按照学校原版(QU文凭证书)皇后大学毕业证快速办理
按照学校原版(QU文凭证书)皇后大学毕业证快速办理
8db3cz8x
 
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
yizxn4sx
 
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
yizxn4sx
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
u0g33km
 
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
nudduv
 
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
byfazef
 
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
xuqdabu
 

Recently uploaded (20)

按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
按照学校原版(UAL文凭证书)伦敦艺术大学毕业证快速办理
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
按照学校原版(Birmingham文凭证书)伯明翰大学|学院毕业证快速办理
 
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
一比一原版(Monash文凭证书)莫纳什大学毕业证如何办理
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
 
Production.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd ddddddddddddddddddddddddddddddddddProduction.pptxd dddddddddddddddddddddddddddddddddd
Production.pptxd dddddddddddddddddddddddddddddddddd
 
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
 
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
按照学校原版(UST文凭证书)圣托马斯大学毕业证快速办理
 
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
按照学校原版(USD文凭证书)圣地亚哥大学毕业证快速办理
 
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
一比一原版(KCL文凭证书)伦敦国王学院毕业证如何办理
 
按照学校原版(QU文凭证书)皇后大学毕业证快速办理
按照学校原版(QU文凭证书)皇后大学毕业证快速办理按照学校原版(QU文凭证书)皇后大学毕业证快速办理
按照学校原版(QU文凭证书)皇后大学毕业证快速办理
 
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
按照学校原版(Greenwich文凭证书)格林威治大学毕业证快速办理
 
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
按照学校原版(Westminster文凭证书)威斯敏斯特大学毕业证快速办理
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
 
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
一比一原版(ANU文凭证书)澳大利亚国立大学毕业证如何办理
 
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
一比一原版(Greenwich文凭证书)格林威治大学毕业证如何办理
 
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide文凭证书)阿德莱德大学毕业证如何办理
 

Image restoration1

  • 1. Image Restoration EE 528 Digital Image Processing
  • 2. All images taken from Gonzalez and Woods online slides http://www.imageprocessingplace.com/DIP/dip _faculty/classroom_presentations_downloads .htm Material mostly based on A.K. Jain’s book Some topics taken from Gonzalez Woods Intuition & images on slides, math details will be covered in class or is in the book
  • 3. Image Enhancement or Restoration Most of what we learnt in Image Enhancement chapter can also be classified as Image Restoration techniques. Specifically Linear filtering (low pass for noise reduction, high pass for edge sharpening, band-pass for both) Median filtering (for salt and pepper noise), Log-domain filtering and other nonlinear techniques
  • 4. Inverse & Pseudo-inverse Filters Inverse Filter Assumes no noise, only blurring. Blurring filter known In case of noise If blurring filter has zeros at some frequencies (which it will since it is a low-pass filter), those frequencies will be amplified in the noise Pseudo-inverse filter: removes the problem at zero (or near zero) frequencies, but still amplifies noise at other frequencies where the blurring filter response is not zero but small
  • 5. Image blurred by atmospheric turbulence & with additive noise
  • 7. Wiener Smoother Assumes image is blurred and has additive noise (independent of image) Need to know Blurring filter Noise covariance True image autocorrelation Mean of noise & of true image (or assume zero mean) Gives “linear MMSE” estimate: linear filter with least expected value of MSE w.r.t. the true image Truly MMSE when the observed and true image are jointly Gaussian
  • 9. Pseudo-inverse v/s Wiener Column 2: Pseudo-inverse Column 3: Wiener Maximum noise in row 1, least in row 3
  • 10. Wiener smoother Observed: v. True: u, convolution: * Can use orthogonality argument to show that the MMSE restored image uhat = g * v, where g (Wiener smoother) satisfies g(k,l)*rvv(k,l) = ruv(k,l) for all (k,l), or equivalently G(f1,f2) = Suv(f1,f2) Svv -1(f 1 ,f 2 ) Assume v = u * h + n, n: noise Need to know ruu, h, rnn. h: blurring filter Compute ruv = h(-k,-l) * ruu(k,l) Compute rvv = h(k,l) * ruv + rnn
  • 11. Properties of Wiener Smoother Non-causal: okay for image processing For time series applications: need to find the best causal filter that minimizes expected MSE: more complicated: Wiener filter Wiener computes correlations etc assuming all signals are zero mean If not, then subtract out the means first and then compute auto-correlations (in other words, always using auto-covariances) Output noise is NOT white. 2D Wiener: not separable even if h, ruu are
  • 12. FIR Wiener Exact Wiener filter or smoother are infinite impulse response (IIR) IIR: expensive to implement Many IIR coefficients are small, one solution is to truncate it. Or Design an FIR Wiener Find the best (least expected MSE) filter with (2M+1) x (2M+1) taps This will give lower MSE than just truncating the IIR filter
  • 13. FIR Wiener Algorithm Assume noise is white and assume noise power known, i.e. σn 2 known Estimate rvv from the observed image Solve for ruv(k,l) from rvv (k,l) = ruv (k,l) * h(k,l) + σn 2 δ(k,l) Assume ruv zero for more than a few taps Need ruv(k,l) only for –M <= k,l <= M g satisfies rvv (k,l) *g(k,l) = ruv (k,l), -M <= k,l <= M
  • 14. FIR Wiener – No blurring h = identity Only need to know SNR σu 2 / σn 2. Say SNR = a σn 2 = rvv(0,0) / (1+a) ruu(0,0) = a rvv(0,0) / (1+a) ruu(k,l) = rvv(k,l) if k ≠ 0 or l ≠ 0 ruv(k,l) = ruu(k,l) Compute different Wiener filters for diff image blocks Choose different length Wieners, e.g. choose M s.t. output SNR σu 2 / σe 2 is roughly constant
  • 15. Need a longer tap Wiener if more noise or more blurring. If zero noise, Wiener approaches inverse filter Summary Wiener smoother Wiener filter or causal Wiener (mostly needed for 1D) FIR Wiener (causal or non-causal) Computing ruu Can also use AR model to get ruu , i.e. use a clean image to estimate an AR model for the image: that can be used to compute ruu
  • 16. Smoothing splines Main idea: find the “smoothest” function that “fits the data (observed image)”, i.e. error between the observed image and smooth function is below a threshold “Smoothness” quantified in various ways, one way is to minimize roughness, i.e. find the function that “fits the data” and has the lowest sum of double derivatives This is called a smoothing spline
  • 17. Constrained Least Squares Find a maximally “smooth” restored image, i.e. find uhat so that J = || q(m,n) * uhat(m,n)|| is minimized and ||v(m,n) – h(m,n)*uhat(m,n)||2 <= ε2 # Solution: Uhat = H* V / (|H|2+ γ|Q|2) γ computed s.t. # satisfied with equality This is the Wiener smoother when Snn = γ and Suu = 1/|Q|2
  • 18. Usually choose q to be the discrete Laplacian Smoothing splines is same as constrained LS when h = identity, i.e. no blurring
  • 20. Geometric distortion Also called “rubber-sheet” transformations Image pixel locations distorted, e.g. translate the image or rotate it or affine deform the image (due to camera motion) Consider distorted image v generated by v(x’,y’) = u(x,y), x’ = r(x,y), y’ = s(x,y) r(x,y) = c1 x + c2 y + c3 xy + c4 s(x,y) = c5 x + c6 y + c7 xy + c8
  • 21. Restoring geometric distortions Step 1: estimate the distortion, i.e. find a set of 4 (or more) corresponding points in the two images and compute the coefficients c1 to c8 Step 2: uhat(x,y) = g( r(x,y), s(x,y) ) r(x,y), s(x,y) may not be integers Need grey scale interpolation Zeroth order hold: g( round( r(x,y) ), round( s(x,y) ) ) Bilinear: use floor and ceil of r(x,y), s(x,y) to compute interpolating function parameters
  • 25. Important difference from other restoration methods To estimate the geometric distortion, i.e. c1 through c8, need at least 4 corresponding point locations in the true image and the distorted image Correcting for geometric distortion is actually an Image Registration technique: assumes both images given Other restoration techniques only use the observed image and “some” other information (e.g. autocorrelation of the true image or at least knowledge of the blurring filter)
  • 26. More on Geometric distortions Finding corresponding points is the difficult problem Commonly used techniques Feature matching Color, KLT tracker, local histogram, local PCA, texture Corner detection methods Curvature vertices (maxima/min/discontinuities) Find the geometric distortion between two whole contours Jointly register & segment
  • 27. Registering 2 contours Contours may have different lengths (if there has been a size change). Solution: Sub-sample, uniformly along arclength, both contours to a fixed number of points M. Use these points as “corresponding points” Computing arclength: in class To do the above robustly: B-spline control points Easier but approx solution: assume the points you get are already uniformly sampled, just resample to a fixed number of points M Details in class
  • 28. Notch filter Filter out a certain frequency or a certain small band of frequencies All called “band-reject” filter Easiest to implement in the frequency domain
  • 29. Image corrupted by sinusoidal noise
  • 31.
  • 33. Speckle noise Occurs in all coherent imaging systems Examples Ultrasound SAR (Synthetic Aperture Radar) Effect of interference of energy from randomly distributed scatters, too small to be resolved by the imaging system Occurs when object roughness is of the order of the incident radiation’s wavelength
  • 34. Speckle noise model Model as infinite sum of i.i.d. phasors with random amplitude and phase, multiplied with the image Details in class If low resolution image, an approximate model is v(x,y) = u(x,y) s(x,y) + n(x,y) n = additive detector noise (already discussed) s = speckle noise s(x,y) = sum of squared magnitude of iid phasors s(x,y): iid exponential with parameter 1/ (2σa 2) Details in class Similar to “multi-path fading” in communication channels
  • 36. Speckle noise reduction Simplest: if multiple ultrasound images available: average them If the multiple images are not “registered” (geometric distortion b/w them), first register as studied in last class, then average Effect of averaging: the speckle will be more constant across pixels, but will NOT go away Techniques for multiplicative noise Homomorphic filtering Take logarithm: log v(x,y). log s(x,y) is then additive noise. Assume it to be Gaussian and apply a Wiener filter to log v(x,y) Assumption holds strictly only if s(x,y) were log-normal which it is not. But Wiener still works!
  • 37. Another application of Homomorphic filtering Any image consists of an illumination component and a reflectance component I(x,y) = i(x,y) r(x,y) Illumination: i, Reflectance: r We are interested in reflectance only: which is due to object texture Illumination will be non-uniform if light falling at an angle. Want to get rid of it. Take log of image, take DFT, suppress low frequencies (assumes illumination is low freq), take I-DFT, and exp
  • 38. Bayesian methods for Restoration General idea: Given p(v|u) (data term or likelihood) & p(u) (prior) Estimate maximizer of p(u|v) : called the MAP solution Wiener is MAP when u and v are jointly Gaussian Weiner gives E[u|v] = conditional mean = MMSE estimate MAP is maxu p(u|v) Since p(u|v) is Gaussian, MAP = conditional mean Constrained LS or actually Regularized LS Min ||q*u||2 + ||v – H u||Rn 2 Solution is Bayesian with a smoothness prior q Nonlinear MAP: v = f(Hu) + n, prior on u given
  • 39. Blind De-convolution: one solution Computing H(f1,f2) Compute Svv(f1,f2) from observed image Assume Suu(f1,f2) known (FT of ruu) from training data Assume Snn(f1,f2) = σn 2 is known log |H|2 = log (Svv – Snn) – log Suu This does not give the phase of H: in many cases H is linear phase (e.g. due to motion blur) or zero phase. If need phase: compute Suv to get it Use H in the Wiener filter
  • 40. Models for the true image Wiener filter requires ruu It may be estimated from rvv, but there you are assuming the noise covariance is known and h (blurring function) is known When h unknown, definitely need to know ruu to estimate h One solution to obtain ruu: assume you have at least one true image available as “training data” Model the image as an MRF (Markov Random Field) Usually suffices to use the 4 nearest neighbors for prediction Details in class or on pages 206 -208 of AK Jain.
  • 41. More on Blind De-convolution