SlideShare ist ein Scribd-Unternehmen logo
1 von 86
 
Prof. Duong Anh Duc
 The concept of filtering is easier to visualize in the frequency domain.
Therefore, enhancement of image f(m,n) can be done in the frequency
domain, based on its DFT F(u,v) .
 This is particularly useful, if the spatial extent of the point-spread
sequence h(m,n) is large. In this case, the convolution
g(m,n) = h(m,n)*f(m,n)
may be computationally unattractive.
2
Enhanced
Image
PSS
Given Image
 We can therefore directly design a transfer function H(u,v) and
implement the enhancement in the frequency domain as follows:
G(u,v) = H(u,v)*F(u,v)
3
Enhanced
Image
Transfer Function
Given Image
 Given a 1-d sequence s[k], k = {…,-1,0,1,2,…,}
 Fourier transform
 Fourier transform is periodic with 2
 Inverse Fourier transform
4
 How is the Fourier transform of a sequence s[k] related to the Fourier
transform of the continuous signal
 Continuous-time Fourier transform
5
 Given a 2-d matrix of image samples
s[m,n], m,n Z2
 Fourier transform
 Fourier transform is 2 -periodic both in x and y
 Inverse Fourier transform
6
 How is the Fourier transform of a sequence s[m,n] related to the
Fourier transform of the continuous signal
 Continuous-space 2D Fourier transform
7
8
|F(u,v)| displayed as imagef(x,y)
9
|F(u,v)| displayed in 3-D
10
Image Magnitude Spectrum
11
Image Magnitude Spectrum
12
Image Magnitude Spectrum
 As the size of the box increases in spatial domain, the corresponding
“size” in the frequency domain decreases.
13
14
|F(u,v)|f(x,y)
15
F(u,v)
16
|G(u,v)|g(x,y)
17
G(u,v)
 Image formed from magnitude
spectrum of Rice and phase
spectrum of Camera man
18
 Image formed from magnitude
spectrum of Camera man and
phase spectrum of Rice
19
 For discrete images of finite extent, the analogous Fourier transform is
the DFT.
 We will first study this for the 1-D case, which is easier to visualize.
 Suppose { f(0), f(1), …, f(N – 1)} is a sequence/ vector/1-D image
of length N. Its N-point DFT is defined as
 Inverse DFT (note the normalization):
20
 Example: Let f(n) = {1, -1 ,2,3 } (Note that N=4)
21
 F(u) is complex even though f(n) is real. This is typical.
 Implementing the DFT directly requires O(N2) computations, where N
is the length of the sequence.
 There is a much more efficient implementation of the DFT using the
Fast Fourier Transform (FFT) algorithm. This is not a new transform (as
the name suggests) but just an efficient algorithm to compute the DFT.
22
 The FFT works best when N = 2m (or is the power of some integer
base/radix). The radix-2 algorithm is most commonly used.
 The computational complexity of the radix-2 FFT algorithm is Nlog(N)
adds and ½Nlog(N) multiplies. So it is an Nlog(N) algorithm.
 In MATLAB, the command fft implements this algorithm (for 1-D
case).
23
 The Fourier transform is suitable for continuous-domain images, which
maybe of infinite extent.
 For discrete images of finite extent, the analogous Fourier transform is
the 2-D DFT.
24
 Suppose f(m,n), m = 0,1,2,…M – 1, n = 0,1,2,…N – 1, is a discrete
N M image. Its 2-D DFT F(u,v) is defined as:
 Inverse DFT is defined as:
25
 For discrete images of finite extent, the analogous Fourier transform is
the 2-D DFT.
 Note about normalization: The normalization by MN is different than
that in text. We will use the one above since it is more widely used. The
Matlab function fft2 implements the DFT as defined above.
26
 Most often we have M=N (square image) and in that case, we define a
unitary DFT as follows:
 We will refer to the above as just DFT (drop unitary) for simplicity.
27
28
29
In matlab, if f and h are matrices representing two images,
conv2(f, h) gives the 2D-convolution of images f and h.
 Linearity (Distributivity and Scaling): This holds inboth discrete and
continuous-domains.
o DFT of the sum of two images is the sum of their individual DFTs.
o DFT of a scaled image is the DFT of the original image scaled by the same
factor.
30
 Spatial scaling (only for continuous-domain):
o If a, b > 1, image “shrinks” and the spectrum “expands.”
31
 Periodicity (only for discrete case): The DFT and its inverse are
periodic (in both the dimensions), with period N.
F(u,v) = F(u+N,v) = F(u,v+N) = F(u+N,v+N)
o Similarly,
is also N-periodic in m and n.
32
 Separability (both continuous and discrete): Decomposition of 2D DFT
into 1D DFTs
33
o Similarly,
34
 Convolution: In continuous-space, Fourier transform of the convolution
is the product of the Four transforms.
F[f(x,y)*h(x,y)] = F(u,v) H(u,v)
So if
g(x,y) = f(x,y)*h(x,y)
is the output of an LTI transformation with PSF h(x,y) to an input image
f(x,y), then
G(u,v) = F(u,v)*H(u,v)
35
o In other words, output spectrum G(u,v) is the product of the input
spectrum F(u,v) and the transfer function H(u,v).
o So the FT can be used as a computational tool to simplify the
convolution operation.
36
 Correlation: In continuous-space, correlation between two images
f(x,y) and h(x,y) is defined as:
 Therefore,
37
 rff(x,y) is usually called the auto-correlation of image f(x,y) (with
itself) and rff(x,y) is called the crosscorrelation between f(x,y) and
h(x,y).
 Roughly speaking, rfh(x,y) measures the degree of similarity between
images f(x,y) and h(x,y). Large values of rfh(x,y) would indicate that
the images are very similar.
38
 This is usually used in template matching, where h(x,y) is a template
shape whose presence we want to detect in the image f(x,y).
 Locations where rfh(x,y) is high (peaks of the crosscorrelation
function) are most likely to be the location of shape h(x,y) in image
f(x,y).
39
 Convolution property for discrete images: Suppose
f(m,n), m = 0,1,2,…M–1, n = 0,1,2,…N–1 is an N M image and
h(m,n), m = 0,1,2,…K–1, n = 0,1,2,…L–1 is an N M image.
then
g(m,n) = f(m,n)*h(m,n) is a (M+K–1) (N+L–1) image.
40
So if we want a convolution property for discrete images --- something
like
g(m,n) = f(m,n)*h(m,n)
we need to have G(u, v) to be of size (M+K–1) (N+L–1) (since
g(m, n) has that dimension).
Therefore, we should require that F(u, v) and H(u, v) also have the
same dimension, i.e. (M+K–1) (N+L–1)
41
So we zero-pad the images f(m, n), h(m, n), so that they are of size
(M+K–1 ) (N+L–1). Let fe(m,n) and he(m,n) be the zero-padded
(or extended images).
Take their 2D-DFTs to obtain F(u, v) and H(u, v), each of size
(M+K–1) (N+L– 1). Then
 Similar comments hold for correlation of discrete images as well.
42
 Translation: (discrete and continuous case):
Note that
so f(m, n) and f(m–m0, n–n0) have the same magnitude spectrum
but different phase spectrum.
Similarly,
43
 Conjugate Symmetry: If f(m, n) is real, then F(u, v) is conjugate
symmetric, i.e.
 Therefore, we usually display F(u–N/2,v–N/2), instead of F(u, v),
since it is easier to visualize the symmetry of the spectrum in this case.
 This is done in Matlab using the fftshift command.
44
 Multiplication: (In continuous-domain) This is the dual of the
convolution property. Multiplication of two images corresponds to
convolving their spectra.
F[f(x,y)h(x,y)] = F(u,v) H(u,v)
45
46
f(m,n)
47
|F(u–N/2,v–N/2)||F(u,v)|
 Average value: The average pixel value in an image:
 Notice that (substitute u = v = 0 in the definition):
48
 Differentiation: (Only in continuous-domain): Derivatives are normally
used for detecting edged in an image. An edge is the boundary of an
object and denotes an abrupt change in grayvalue. Hence it is a region
with high value of derivative.
49
50
51
52
 Edges and sharp transitions in grayvalues in an image contribute
significantly to high-frequency content of its Fourier transform.
 Regions of relatively uniform grayvalues in an image contribute to low-
frequency content of its Fourier transform.
 Hence, an image can be smoothed in the Frequency domain by
attenuating the high-frequency content of its Fourier transform.
This would be a lowpass filter!
53
54
 For simplicity, we will consider only those filters that are real and
radially symmetric.
 An ideal lowpass filter with cutoff frequency r0:
55
 Note that the origin (0, 0) is at the center and not the corner of the
image (recall the “fftshift” operation).
 The abrupt transition from 1 to 0 of the transfer function H(u,v) cannot
be realized in practice, using electronic components. However, it can
be simulated on a computer.
56
Ideal LPF with r0 = 57
57
Ideal LPF with r0 = 57Original Image
58
Ideal LPF with r0 = 26Ideal LPF with r0= 36
 Notice the severe ringing effect in the blurred images, which is a
characteristic of ideal filters. It is due to the discontinuity in the filter
transfer function.
59
 The cutoff frequency r0 of the ideal LPF determines the amount of
frequency components passed by the filter.
 Smaller the value of r0, more the number of image components
eliminated by the filter.
 In general, the value of r0 is chosen such that most components of
interest are passed through, while most components not of interest are
eliminated.
 Usually, this is a set of conflicting requirements. We will see some
details of this is image restoration
 A useful way to establish a set of standard cut-off frequencies is to
compute circles which enclose a specified fraction of the total image
power.
60
 Suppose
where is the total image power.
 Consider a circle of radius =r0(a) as a cutoff frequency with respect to
a threshold a such that
 We can then fix a threshold a and obtain an appropriate cutoff
frequency r0(a) .
61
 A two-dimensional Butterworth lowpass filter has transfer function:
n: filter order, r0: cutoff frequency
62
63
64
 Frequency response does not have a sharp transition as in the ideal
LPF.
 This is more appropriate for image smoothing than the ideal LPF, since
this not introduce ringing.
65
66
LPF with r0= 18Original Image
67
LPF with r0= 10LPF with r0= 13
68
Image with false contouring
due to insufficient bits used
for quantization
Lowpass filtered version of
previous image
69
Original Image Noisy Image
70
LPF Image
 The form of a Gaussian lowpass filter in two-dimensions is given by
where
is the distance from the origin in the frequency plane.
 The parameter s measures the spread or dispersion of the Gaussian
curve. Larger the value of s, larger the cutoff frequency and milder the
filtering.
 When s = D(u, v), the filter is down to 0.607 of its maximum value of
1.
71
22
, vuvuD
22
2,
, vuD
evuH
72
 Edges and sharp transitions in grayvalues in an image contribute
significantly to high-frequency content of its Fourier transform.
 Regions of relatively uniform grayvalues in an image contribute to low-
frequency content of its Fourier transform.
 Hence, image sharpening in the Frequency domain can be done by
attenuating the low-frequency content of its Fourier transform. This
would be a highpass filter!
73
 For simplicity, we will consider only those filters that are real and
radially symmetric.
 An ideal highpass filter with cutoff frequency r0:
74
 Note that the origin (0, 0) is at the center and not the corner of the
image (recall the “fftshift” operation).
 The abrupt transition from 1 to 0 of the transfer function H(u,v) cannot
be realized in practice, using electronic components. However, it can
be simulated on a computer.
75
Ideal HPF with r0= 36
76
Ideal HPF with r0= 18Original Image
77
Ideal HPF with r0= 26Ideal HPF with r0= 36
 Notice the severe ringing effect in the output images, which is a
characteristic of ideal filters. It is due to the discontinuity in the filter
transfer function.
78
 A two-dimensional Butterworth highpass filter has transfer function:
n: filter order, r0: cutoff frequency
79
80
 Frequency response does not have a sharp transition as in the ideal
HPF.
 This is more appropriate for image sharpening than the ideal HPF,
since this not introduce ringing
81
82
HPF with r0= 47Original Image
83
HPF with r0= 81HPF with r0= 36
 The form of a Gaussian lowpass filter in two-dimensions is given by
where
is the distance from the origin in the frequency plane.
 The parameter s measures the spread or dispersion of the Gaussian
curve. Larger the value of s, larger the cutoff frequency and more
severe the filtering.
84
22
, vuvuD
22
2,
1, vuD
evuH
85
86

Weitere ähnliche Inhalte

Was ist angesagt?

Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainMalik obeisat
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image EnhancementMathankumar S
 
Noise filtering
Noise filteringNoise filtering
Noise filteringAlaa Ahmed
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operationsmukesh bhardwaj
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2Gichelle Amon
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafMD Naseem Ashraf
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESEzhilya venkat
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainMadhu Bala
 

Was ist angesagt? (20)

Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 
Image compression
Image compressionImage compression
Image compression
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
6 spatial filtering p2
6 spatial filtering p26 spatial filtering p2
6 spatial filtering p2
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 

Andere mochten auch

Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainMostafa G. M. Mostafa
 
Frequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital ImagesFrequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital ImagesUpendra Pratap Singh
 
Image Processing
Image ProcessingImage Processing
Image Processingtijeel
 
04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentalscpshah01
 
07 frequency domain DIP
07 frequency domain DIP07 frequency domain DIP
07 frequency domain DIPbabak danyal
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
Electromagnetic Frequency Spectrum Presentation
Electromagnetic Frequency Spectrum PresentationElectromagnetic Frequency Spectrum Presentation
Electromagnetic Frequency Spectrum PresentationAndile Ngcaba
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Ajal filters
Ajal filtersAjal filters
Ajal filtersAJAL A J
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processingNashid Alam
 
Image processing
Image processingImage processing
Image processingPooja G N
 
Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainZara Tariq
 
ppt on Time Domain and Frequency Domain Analysis
ppt on Time Domain and Frequency Domain Analysisppt on Time Domain and Frequency Domain Analysis
ppt on Time Domain and Frequency Domain Analysissagar_kamble
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter designSushant Shankar
 

Andere mochten auch (20)

Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 
Frequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital ImagesFrequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital Images
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals
 
Ppt ---image processing
Ppt ---image processingPpt ---image processing
Ppt ---image processing
 
07 frequency domain DIP
07 frequency domain DIP07 frequency domain DIP
07 frequency domain DIP
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Electromagnetic Frequency Spectrum Presentation
Electromagnetic Frequency Spectrum PresentationElectromagnetic Frequency Spectrum Presentation
Electromagnetic Frequency Spectrum Presentation
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Ajal filters
Ajal filtersAjal filters
Ajal filters
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processing
 
Properties of Fourier transform
Properties of Fourier transformProperties of Fourier transform
Properties of Fourier transform
 
Image processing
Image processingImage processing
Image processing
 
Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
03 image transform
03 image transform03 image transform
03 image transform
 
ppt on Time Domain and Frequency Domain Analysis
ppt on Time Domain and Frequency Domain Analysisppt on Time Domain and Frequency Domain Analysis
ppt on Time Domain and Frequency Domain Analysis
 
digital filters
digital filtersdigital filters
digital filters
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter design
 

Ähnlich wie Frequency domain methods

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
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformationsJohn Williams
 
FourierTransform detailed power point presentation
FourierTransform detailed power point presentationFourierTransform detailed power point presentation
FourierTransform detailed power point presentationssuseracb8ba
 
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-domainMalik obeisat
 
Lec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfLec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfnagwaAboElenein
 
Chapter no4 image transform3
Chapter no4 image transform3Chapter no4 image transform3
Chapter no4 image transform3ShardaSalunkhe1
 
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 transformSimranjit Singh
 
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)Amr E. Mohamed
 
Filtering in frequency domain
Filtering in frequency domainFiltering in frequency domain
Filtering in frequency domainGowriLatha1
 
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 normTuan Q. Pham
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptxMrsSDivyaBME
 
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 slidesBHAGYAPRASADBUGGE
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transformvijayanand Kandaswamy
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionKellen Betts
 

Ähnlich wie Frequency domain methods (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)
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
FourierTransform detailed power point presentation
FourierTransform detailed power point presentationFourierTransform detailed power point presentation
FourierTransform detailed power point presentation
 
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
 
Lect5 v2
Lect5 v2Lect5 v2
Lect5 v2
 
Lec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfLec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdf
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
 
Chapter no4 image transform3
Chapter no4 image transform3Chapter no4 image transform3
Chapter no4 image transform3
 
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
 
Fourier Transforms
Fourier TransformsFourier Transforms
Fourier Transforms
 
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
 
Filtering in frequency domain
Filtering in frequency domainFiltering in frequency domain
Filtering in frequency domain
 
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
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptx
 
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
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
 
Nabaa
NabaaNabaa
Nabaa
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusion
 
Digtial Image Processing Q@A
Digtial Image Processing Q@ADigtial Image Processing Q@A
Digtial Image Processing Q@A
 

Kürzlich hochgeladen

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Kürzlich hochgeladen (20)

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

Frequency domain methods

  • 2.  The concept of filtering is easier to visualize in the frequency domain. Therefore, enhancement of image f(m,n) can be done in the frequency domain, based on its DFT F(u,v) .  This is particularly useful, if the spatial extent of the point-spread sequence h(m,n) is large. In this case, the convolution g(m,n) = h(m,n)*f(m,n) may be computationally unattractive. 2 Enhanced Image PSS Given Image
  • 3.  We can therefore directly design a transfer function H(u,v) and implement the enhancement in the frequency domain as follows: G(u,v) = H(u,v)*F(u,v) 3 Enhanced Image Transfer Function Given Image
  • 4.  Given a 1-d sequence s[k], k = {…,-1,0,1,2,…,}  Fourier transform  Fourier transform is periodic with 2  Inverse Fourier transform 4
  • 5.  How is the Fourier transform of a sequence s[k] related to the Fourier transform of the continuous signal  Continuous-time Fourier transform 5
  • 6.  Given a 2-d matrix of image samples s[m,n], m,n Z2  Fourier transform  Fourier transform is 2 -periodic both in x and y  Inverse Fourier transform 6
  • 7.  How is the Fourier transform of a sequence s[m,n] related to the Fourier transform of the continuous signal  Continuous-space 2D Fourier transform 7
  • 13.  As the size of the box increases in spatial domain, the corresponding “size” in the frequency domain decreases. 13
  • 18.  Image formed from magnitude spectrum of Rice and phase spectrum of Camera man 18
  • 19.  Image formed from magnitude spectrum of Camera man and phase spectrum of Rice 19
  • 20.  For discrete images of finite extent, the analogous Fourier transform is the DFT.  We will first study this for the 1-D case, which is easier to visualize.  Suppose { f(0), f(1), …, f(N – 1)} is a sequence/ vector/1-D image of length N. Its N-point DFT is defined as  Inverse DFT (note the normalization): 20
  • 21.  Example: Let f(n) = {1, -1 ,2,3 } (Note that N=4) 21
  • 22.  F(u) is complex even though f(n) is real. This is typical.  Implementing the DFT directly requires O(N2) computations, where N is the length of the sequence.  There is a much more efficient implementation of the DFT using the Fast Fourier Transform (FFT) algorithm. This is not a new transform (as the name suggests) but just an efficient algorithm to compute the DFT. 22
  • 23.  The FFT works best when N = 2m (or is the power of some integer base/radix). The radix-2 algorithm is most commonly used.  The computational complexity of the radix-2 FFT algorithm is Nlog(N) adds and ½Nlog(N) multiplies. So it is an Nlog(N) algorithm.  In MATLAB, the command fft implements this algorithm (for 1-D case). 23
  • 24.  The Fourier transform is suitable for continuous-domain images, which maybe of infinite extent.  For discrete images of finite extent, the analogous Fourier transform is the 2-D DFT. 24
  • 25.  Suppose f(m,n), m = 0,1,2,…M – 1, n = 0,1,2,…N – 1, is a discrete N M image. Its 2-D DFT F(u,v) is defined as:  Inverse DFT is defined as: 25
  • 26.  For discrete images of finite extent, the analogous Fourier transform is the 2-D DFT.  Note about normalization: The normalization by MN is different than that in text. We will use the one above since it is more widely used. The Matlab function fft2 implements the DFT as defined above. 26
  • 27.  Most often we have M=N (square image) and in that case, we define a unitary DFT as follows:  We will refer to the above as just DFT (drop unitary) for simplicity. 27
  • 28. 28
  • 29. 29 In matlab, if f and h are matrices representing two images, conv2(f, h) gives the 2D-convolution of images f and h.
  • 30.  Linearity (Distributivity and Scaling): This holds inboth discrete and continuous-domains. o DFT of the sum of two images is the sum of their individual DFTs. o DFT of a scaled image is the DFT of the original image scaled by the same factor. 30
  • 31.  Spatial scaling (only for continuous-domain): o If a, b > 1, image “shrinks” and the spectrum “expands.” 31
  • 32.  Periodicity (only for discrete case): The DFT and its inverse are periodic (in both the dimensions), with period N. F(u,v) = F(u+N,v) = F(u,v+N) = F(u+N,v+N) o Similarly, is also N-periodic in m and n. 32
  • 33.  Separability (both continuous and discrete): Decomposition of 2D DFT into 1D DFTs 33
  • 35.  Convolution: In continuous-space, Fourier transform of the convolution is the product of the Four transforms. F[f(x,y)*h(x,y)] = F(u,v) H(u,v) So if g(x,y) = f(x,y)*h(x,y) is the output of an LTI transformation with PSF h(x,y) to an input image f(x,y), then G(u,v) = F(u,v)*H(u,v) 35
  • 36. o In other words, output spectrum G(u,v) is the product of the input spectrum F(u,v) and the transfer function H(u,v). o So the FT can be used as a computational tool to simplify the convolution operation. 36
  • 37.  Correlation: In continuous-space, correlation between two images f(x,y) and h(x,y) is defined as:  Therefore, 37
  • 38.  rff(x,y) is usually called the auto-correlation of image f(x,y) (with itself) and rff(x,y) is called the crosscorrelation between f(x,y) and h(x,y).  Roughly speaking, rfh(x,y) measures the degree of similarity between images f(x,y) and h(x,y). Large values of rfh(x,y) would indicate that the images are very similar. 38
  • 39.  This is usually used in template matching, where h(x,y) is a template shape whose presence we want to detect in the image f(x,y).  Locations where rfh(x,y) is high (peaks of the crosscorrelation function) are most likely to be the location of shape h(x,y) in image f(x,y). 39
  • 40.  Convolution property for discrete images: Suppose f(m,n), m = 0,1,2,…M–1, n = 0,1,2,…N–1 is an N M image and h(m,n), m = 0,1,2,…K–1, n = 0,1,2,…L–1 is an N M image. then g(m,n) = f(m,n)*h(m,n) is a (M+K–1) (N+L–1) image. 40
  • 41. So if we want a convolution property for discrete images --- something like g(m,n) = f(m,n)*h(m,n) we need to have G(u, v) to be of size (M+K–1) (N+L–1) (since g(m, n) has that dimension). Therefore, we should require that F(u, v) and H(u, v) also have the same dimension, i.e. (M+K–1) (N+L–1) 41
  • 42. So we zero-pad the images f(m, n), h(m, n), so that they are of size (M+K–1 ) (N+L–1). Let fe(m,n) and he(m,n) be the zero-padded (or extended images). Take their 2D-DFTs to obtain F(u, v) and H(u, v), each of size (M+K–1) (N+L– 1). Then  Similar comments hold for correlation of discrete images as well. 42
  • 43.  Translation: (discrete and continuous case): Note that so f(m, n) and f(m–m0, n–n0) have the same magnitude spectrum but different phase spectrum. Similarly, 43
  • 44.  Conjugate Symmetry: If f(m, n) is real, then F(u, v) is conjugate symmetric, i.e.  Therefore, we usually display F(u–N/2,v–N/2), instead of F(u, v), since it is easier to visualize the symmetry of the spectrum in this case.  This is done in Matlab using the fftshift command. 44
  • 45.  Multiplication: (In continuous-domain) This is the dual of the convolution property. Multiplication of two images corresponds to convolving their spectra. F[f(x,y)h(x,y)] = F(u,v) H(u,v) 45
  • 48.  Average value: The average pixel value in an image:  Notice that (substitute u = v = 0 in the definition): 48
  • 49.  Differentiation: (Only in continuous-domain): Derivatives are normally used for detecting edged in an image. An edge is the boundary of an object and denotes an abrupt change in grayvalue. Hence it is a region with high value of derivative. 49
  • 50. 50
  • 51. 51
  • 52. 52
  • 53.  Edges and sharp transitions in grayvalues in an image contribute significantly to high-frequency content of its Fourier transform.  Regions of relatively uniform grayvalues in an image contribute to low- frequency content of its Fourier transform.  Hence, an image can be smoothed in the Frequency domain by attenuating the high-frequency content of its Fourier transform. This would be a lowpass filter! 53
  • 54. 54
  • 55.  For simplicity, we will consider only those filters that are real and radially symmetric.  An ideal lowpass filter with cutoff frequency r0: 55
  • 56.  Note that the origin (0, 0) is at the center and not the corner of the image (recall the “fftshift” operation).  The abrupt transition from 1 to 0 of the transfer function H(u,v) cannot be realized in practice, using electronic components. However, it can be simulated on a computer. 56 Ideal LPF with r0 = 57
  • 57. 57 Ideal LPF with r0 = 57Original Image
  • 58. 58 Ideal LPF with r0 = 26Ideal LPF with r0= 36
  • 59.  Notice the severe ringing effect in the blurred images, which is a characteristic of ideal filters. It is due to the discontinuity in the filter transfer function. 59
  • 60.  The cutoff frequency r0 of the ideal LPF determines the amount of frequency components passed by the filter.  Smaller the value of r0, more the number of image components eliminated by the filter.  In general, the value of r0 is chosen such that most components of interest are passed through, while most components not of interest are eliminated.  Usually, this is a set of conflicting requirements. We will see some details of this is image restoration  A useful way to establish a set of standard cut-off frequencies is to compute circles which enclose a specified fraction of the total image power. 60
  • 61.  Suppose where is the total image power.  Consider a circle of radius =r0(a) as a cutoff frequency with respect to a threshold a such that  We can then fix a threshold a and obtain an appropriate cutoff frequency r0(a) . 61
  • 62.  A two-dimensional Butterworth lowpass filter has transfer function: n: filter order, r0: cutoff frequency 62
  • 63. 63
  • 64. 64
  • 65.  Frequency response does not have a sharp transition as in the ideal LPF.  This is more appropriate for image smoothing than the ideal LPF, since this not introduce ringing. 65
  • 66. 66 LPF with r0= 18Original Image
  • 67. 67 LPF with r0= 10LPF with r0= 13
  • 68. 68 Image with false contouring due to insufficient bits used for quantization Lowpass filtered version of previous image
  • 71.  The form of a Gaussian lowpass filter in two-dimensions is given by where is the distance from the origin in the frequency plane.  The parameter s measures the spread or dispersion of the Gaussian curve. Larger the value of s, larger the cutoff frequency and milder the filtering.  When s = D(u, v), the filter is down to 0.607 of its maximum value of 1. 71 22 , vuvuD 22 2, , vuD evuH
  • 72. 72
  • 73.  Edges and sharp transitions in grayvalues in an image contribute significantly to high-frequency content of its Fourier transform.  Regions of relatively uniform grayvalues in an image contribute to low- frequency content of its Fourier transform.  Hence, image sharpening in the Frequency domain can be done by attenuating the low-frequency content of its Fourier transform. This would be a highpass filter! 73
  • 74.  For simplicity, we will consider only those filters that are real and radially symmetric.  An ideal highpass filter with cutoff frequency r0: 74
  • 75.  Note that the origin (0, 0) is at the center and not the corner of the image (recall the “fftshift” operation).  The abrupt transition from 1 to 0 of the transfer function H(u,v) cannot be realized in practice, using electronic components. However, it can be simulated on a computer. 75 Ideal HPF with r0= 36
  • 76. 76 Ideal HPF with r0= 18Original Image
  • 77. 77 Ideal HPF with r0= 26Ideal HPF with r0= 36
  • 78.  Notice the severe ringing effect in the output images, which is a characteristic of ideal filters. It is due to the discontinuity in the filter transfer function. 78
  • 79.  A two-dimensional Butterworth highpass filter has transfer function: n: filter order, r0: cutoff frequency 79
  • 80. 80
  • 81.  Frequency response does not have a sharp transition as in the ideal HPF.  This is more appropriate for image sharpening than the ideal HPF, since this not introduce ringing 81
  • 82. 82 HPF with r0= 47Original Image
  • 83. 83 HPF with r0= 81HPF with r0= 36
  • 84.  The form of a Gaussian lowpass filter in two-dimensions is given by where is the distance from the origin in the frequency plane.  The parameter s measures the spread or dispersion of the Gaussian curve. Larger the value of s, larger the cutoff frequency and more severe the filtering. 84 22 , vuvuD 22 2, 1, vuD evuH
  • 85. 85
  • 86. 86