Professional Documents
Culture Documents
• Used to decompose an image into its sine and • As images are having finite number of • The number of frequencies corresponds to the
cosine components intensities, Discrete Fourier Transform is used number of pixels in the spatial domain image
• The output of the transformation represents to transform it to frequency domain • Image in spatial and Fourier domain are of
the image in the Fourier or frequency domain • DFT is a sampled Fourier transform same size
• In Fourier domain image, each point represents • So it does not contain all frequencies forming • Fourier transform includes
a particular frequency contained in the spatial an image – Spatial frequency – brightness of the image
domain image • But only a set of samples which is large enough – Magnitude – relates the contrast
to fully describe the spatial domain image – Phase – contains color information
Discrete Fourier Transform Discrete Fourier Transform Centering the DFT Spectrum Centering the DFT Spectrum
Low pass filter Low pass filter Low pass filter High pass filtering
Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain
using Discrete Fourier Transform using Discrete Fourier Transform using Discrete Fourier Transform using Discrete Fourier Transform
Centering the DFT Spectrum Centering the DFT Spectrum Discrete Fourier Transform Frequency Domain
• F(0,0) is at the top left corner • Spatial Domain DFT Inverse DFT
• To have DC component at center, swap four
quadrants of Fourier transform
High pass and low pass frequency
Low pass filter Low pass filter Low pass filter
components
• High pass – denotes edges • To keep frequencies below frequency • Multiply image fourier transform by filter
• Low pass – denotes smooth regions a certain matrix m
• Low pass filtering causes blurring
• After DFT, DC components and low
frequency components are towards center
• Cutoff frequency must be specified
Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain Spatial Domain to Frequency Domain
using Discrete Fourier Transform using Discrete Fourier Transform using Discrete Fourier Transform using Discrete Fourier Transform
Frequency Domain to Spatial Domain Frequency Domain to Spatial Domain Frequency Domain to Spatial Domain
using inverse Discrete Fourier Transform using inverse Discrete Fourier Transform using inverse Discrete Fourier Transform
Image Restoration
From Prof.
Xin Li
out-of-focus blur motion blur
1
Question 2: How do I deblur an image?
• Non-blind deblurring/deconvolution
Given: observation y(m,n) and blurring function h(m,n)
Design: g(m,n), such that the distortion between x(m,n) and ^
x(m,n)
is minimized
motion blur
• Blind deblurring/deconvolution
Given: observation y(m,n)
^
Design: g(m,n), such that the distortion between x(m,n) and x(m,n)
From [Gonzalez & Woods]
is minimized
W2 noise power
K
X2 signal power
less noise
Weiner
Radially limited filtering
inverse filtering
R = 70
less noise
H * (u, v) W2
Wiener filter: G (u, v) where K
| H (u, v) |2 K X2