SlideShare a Scribd company logo
1 of 40
Download to read offline
2D Discrete Fourier Transform (DFT)
2
Outline
• Circular and linear convolutions
• 2D DFT
• 2D DCT
• Properties
• Other formulations
• Examples
3
Circular convolution
• Finite length signals (N0 samples) → circular or periodic convolution
– the summation is over 1 period
– the result is a N0 period sequence
• The circular convolution is equivalent to the linear convolution of the
zero-padded equal length sequences
[ ]
f m
m
*
[ ]
g m
m
[ ]* [ ]
f m g m
m
=
Length=P Length=Q Length=P+Q-1
For the convolution property to hold, M must be greater than or equal to P+Q-1.
[ ]* [ ] [ ] [ ]
f m g m F k G k
⇔
0 1
0
[ ] [ ] [ ] [ ] [ ]
N
n
c k f k g k f n g k n
−
=
= ⊗ = −
∑
4
Convolution
• Zero padding
[ ]* [ ] [ ] [ ]
f m g m F k G k
⇔
[ ]
f m
m
*
[ ]
g m
m
[ ]* [ ]
f m g m
m
=
[ ]
F k
4-point DFT
(M=4)
[ ]
G k [ ] [ ]
F k G k
5
In words
• Given 2 sequences of length N and M, let y[k] be their linear convolution
• y[k] is also equal to the circular convolution of the two suitably zero padded
sequences making them consist of the same number of samples
• In this way, the linear convolution between two sequences having a different length
(filtering) can be computed by the DFT (which rests on the circular convolution)
– The procedure is the following
• Pad f[n] with Nh-1 zeros and h[n] with Nf-1 zeros
• Find Y[r] as the product of F[r] and H[r] (which are the DFTs of the corresponding zero-padded
signals)
• Find the inverse DFT of Y[r]
• Allows to perform linear filtering using DFT
[ ] [ ] [ ] [ ] [ ]
n
y k f k h k f n h k n
+∞
=−∞
= ∗ = −
∑
0 1
0
0
[ ] [ ] [ ] [ ] [ ]
+ 1: length of the zero-padded seq
N
n
f h
c k f k h k f n h k n
N N N
−
=
= ⊗ = −
= −
∑
6
2D Discrete Fourier Transform
• Fourier transform of a 2D signal defined over a discrete finite 2D grid
of size MxN
or equivalently
• Fourier transform of a 2D set of samples forming a bidimensional
sequence
• As in the 1D case, 2D-DFT, though a self-consistent transform, can
be considered as a mean of calculating the transform of a 2D
sampled signal defined over a discrete grid.
• The signal is periodized along both dimensions and the 2D-DFT can
be regarded as a sampled version of the 2D DTFT
7
2D Discrete Fourier Transform (2D DFT)
• 2D Fourier (discrete time) Transform (DTFT) [Gonzalez]
2 ( )
( , ) [ , ] j um vn
m n
F u v f m n e π
∞ ∞
− +
=−∞ =−∞
= ∑ ∑
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
MN
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
• 2D Discrete Fourier Transform (DFT)
2D DFT can be regarded as a sampled version of 2D DTFT.
a-periodic signal
periodic transform
periodized signal
periodic and sampled
transform
8
2D DFT: Periodicity
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
MN
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
1 1 2
0 0
1
[ , ] [ , ]
k M l N
M N j m n
M N
m n
F k M l N f m n e
MN
π
+ +
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
+ + = ∑∑
1 1 2 2
0 0
1
[ , ]
k l M N
M N j m n j m n
M N M N
m n
f m n e e
MN
π π
⎛ ⎞ ⎛ ⎞
− − − + − +
⎜ ⎟ ⎜ ⎟
⎝ ⎠ ⎝ ⎠
= =
= ∑∑
1
• A [M,N] point DFT is periodic with period [M,N]
– Proof
[ , ]
F k l
=
(In what follows: spatial coordinates=k,l, frequency coordinates: u,v)
9
2D DFT: Periodicity
• Periodicity
• This has important consequences on the implementation and energy
compaction property
– 1D
[ , ] [ , ] [ , ] [ , ]
F u v F u mM v F u v nN F u mM v nN
= + = + = + +
[ , ] [ , ] [ , ] [ , ]
f k l f k mM l f k l nN f k mM l nN
= + = + = + +
f[u]
u
M/2 M
0
[ ] [ ]
F N u F u
∗
− =
The two inverted periods meet here
f[k] real→F[u] is symmetric
M/2 samples are enough
10
Periodicity: 1D
f[u]
u
M/2 M
0
It is more practical to have one complete period positioned in [0, M-1]
[ ] [ ]
f k F u
↔
0
0
2
0
2 2
2
0
[ ]e [ ]
e e e ( 1)
2
( 1) [ ] [ ]
2
u k
j
M
u k Mk
j j
j k k
M M
k
f k F u u
M
u
M
f k F u
π
π π
π
↔ −
= → = = = −
− ↔ −
changing the sign of every other
sample puts F[0] at the center of the
interval [0,M]
The two inverted periods meet here
11
Periodicity: 2D
DFT periods
MxN values
4 inverted
periods meet
here
M/2
-M/2
N/2
-N/2
F[u,v]
(0,0)
12
Periodicity: 2D
DFT periods
MxN values
4 inverted
periods meet
here
M/2
N/2
F[u,v]
(0,0) M-1
N-1
0 0
2 ( )
0 0
0 0
[ , ]e [ , ]
,
2 2
( 1) [ ] ,
2 2
u k v l
j
M N
k l
f k l F u u v v
M N
u v
M N
f k F u v
π +
+
↔ − −
= = →
⎡ ⎤
− ↔ − −
⎢ ⎥
⎣ ⎦
data contain one centered
complete period
13
Periodicity: 2D
M/2
N/2
F[u,v]
(0,0) M-1
N-1
4 inverted
periods meet
here
14
Periodicity in spatial domain
1 1 2
0 0
[ , ] [ , ]
k l
M N j m n
M N
k l
f m n F k l e
π
⎛ ⎞
− − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
1
• [M,N] point inverse DFT is periodic with period [M,N]
1 1 2 ( ) ( )
0 0
[ , ] [ , ]
k l
M N j m M n N
M N
k l
f m M n N F k l e
π
⎛ ⎞
− − + + +
⎜ ⎟
⎝ ⎠
= =
+ + = ∑∑
1 1 2 2
0 0
[ , ]
k l k l
M N j m n j M N
M N M N
k l
F k l e e
π π
⎛ ⎞ ⎛ ⎞
− − + +
⎜ ⎟ ⎜ ⎟
⎝ ⎠ ⎝ ⎠
= =
= ∑∑
[ , ]
f m n
=
15
Angle and phase spectra
[ ] [ ] [ ]
[ ] [ ]
{ } [ ]
{ }
[ ]
[ ]
{ }
[ ]
{ }
[ ]
,
1/ 2
2 2
2
, ,
, Re , Im ,
Im ,
, arctan
Re ,
[ , ] ,
j u v
F u v F u v e
F u v F u v F u v
F u v
u v
F u v
P u v F u v
Φ
=
⎡ ⎤
= +
⎣ ⎦
⎡ ⎤
Φ = ⎢ ⎥
⎣ ⎦
=
modulus (amplitude spectrum)
phase
power spectrum
For a real function
[ , ] [ , ]
[ , ] [ , ]
[ , ] [ , ]
F u v F u v
F u v F u v
u v u v
∗
− − =
− − =
Φ − − = −Φ
conjugate symmetric with respect to the origin
16
Translation and rotation
[ ]
[ ] [ ]
2
2
[ , ] ,
, ,
m n
j k l
M N
m n
j k l
M N
f k l e F u m v l
f k m l n F u v
π
π
⎛ ⎞
+
⎜ ⎟
⎝ ⎠
⎛ ⎞
− +
⎜ ⎟
⎝ ⎠
↔ − −
− − ↔
[ ] [ ]
0 0
cos cos
sin sin
, ,
k r u
l r l
f r F
ϑ ω ϕ
ϑ ω ϕ
ϑ ϑ ω ϕ ϑ
= =
⎧ ⎧
⎨ ⎨
= =
⎩ ⎩
+ ↔ +
Rotations in spatial domain correspond equal rotations in Fourier domain
17
mean value
[ ] [ ]
1 1
0 0
1
0,0 ,
N M
n m
F f n m
NM
− −
= =
= ∑∑ DC coefficient
18
Separability
• The discrete two-dimensional Fourier transform of an image array is
defined in series form as
• inverse transform
• Because the transform kernels are separable and symmetric, the two
dimensional transforms can be computed as sequential row and column
one-dimensional transforms.
• The basis functions of the transform are complex exponentials that may be
decomposed into sine and cosine components.
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
MN
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
1 1 2
0 0
[ , ] [ , ]
k l
M N j m n
M N
k l
f m n F k l e
π
⎛ ⎞
− − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
19
2D DFT: summary
20
2D DFT: summary
21
2D DFT: summary
22
2D DFT: summary
other formulations
24
2D Discrete Fourier Transform
• Inverse DFT
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
MN
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
• 2D Discrete Fourier Transform (DFT)
1 1 2
0 0
[ , ] [ , ]
k l
M N j m n
M N
k l
f m n F k l e
π
⎛ ⎞
− − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
where
0,1,..., 1
k M
= −
0,1,..., 1
l N
= −
25
2D Discrete Fourier Transform
• Inverse DFT
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
MN
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
• It is also possible to define DFT as follows
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
k l
f m n F k l e
MN
π
⎛ ⎞
− − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
where 0,1,..., 1
k M
= −
0,1,..., 1
l N
= −
26
2D Discrete Fourier Transform
• Inverse DFT
1 1 2
0 0
[ , ] [ , ]
k l
M N j m n
M N
m n
F k l f m n e
π
⎛ ⎞
− − − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
• Or, as follows
1 1 2
0 0
1
[ , ] [ , ]
k l
M N j m n
M N
k l
f m n F k l e
MN
π
⎛ ⎞
− − +
⎜ ⎟
⎝ ⎠
= =
= ∑∑
where and
0,1,..., 1
k M
= − 0,1,..., 1
l N
= −
27
2D DFT
• The discrete two-dimensional Fourier transform of an image array is
defined in series form as
• inverse transform
2D DCT
Discrete Cosine Transform
29
2D DCT
• based on most common form for 1D DCT
u,x=0,1,…, N-1
“mean” value
30
1D basis functions
Cosine basis functions are orthogonal
Figure 1
31
2D DCT
• Corresponding 2D formulation
u,v=0,1,…., N-1
direct
inverse
32
2D basis functions
• The 2-D basis functions can be generated by multiplying the
horizontally oriented 1-D basis functions (shown in Figure 1) with
vertically oriented set of the same functions.
• The basis functions for N = 8 are shown in Figure 2.
– The basis functions exhibit a progressive increase in frequency both in
the vertical and horizontal direction.
– The top left basis function assumes a constant value and is referred to
as the DC coefficient.
33
2D DCT basis functions
Figure 2
34
Separability
The inverse of a multi-dimensional DCT is just a separable product of the inverse(s) of the
corresponding one-dimensional DCT , e.g. the one-dimensional inverses applied along one
dimension at a time
35
Separability
• Symmetry
– Another look at the row and column operations reveals that these
operations are functionally identical. Such a transformation is called a
symmetric transformation.
– A separable and symmetric transform can be expressed in the form
– where A is a NxN symmetric transformation matrix which entries a(i,j)
are given by
• This is an extremely useful property since it implies that the transformation
matrix can be pre computed offline and then applied to the image thereby
providing orders of magnitude improvement in computation efficiency.
T AfA
=
36
Computational efficiency
• Computational efficiency
– Inverse transform
– DCT basis functions are orthogonal. Thus, the inverse transformation
matrix of A is equal to its transpose i.e. A-1= AT. This property renders
some reduction in the pre-computation complexity.
37
Block-based implementation
The source data (8x8) is transformed to a
linear combination of these 64 frequency
squares.
Block size
N=M=8
Block-based transform
Basis function
38
Energy compaction
39
Energy compaction
40
Appendix
• Eulero’s formula

More Related Content

What's hot

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantizationBCET, Balasore
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reductionJksuryawanshi
 
Lecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsLecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsVARUN KUMAR
 
Block Truncation Coding
Block Truncation CodingBlock Truncation Coding
Block Truncation Codingriyagam
 
Aliasing and Antialiasing filter
Aliasing and Antialiasing filterAliasing and Antialiasing filter
Aliasing and Antialiasing filterSuresh Mohta
 
Digital image processing
Digital image processingDigital image processing
Digital image processingSangavi G
 
Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perceptionDr INBAMALAR T M
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Chapter 3 - Fundamental Concepts in Video and Digital Audio.ppt
Chapter 3 - Fundamental Concepts in Video and Digital Audio.pptChapter 3 - Fundamental Concepts in Video and Digital Audio.ppt
Chapter 3 - Fundamental Concepts in Video and Digital Audio.pptBinyamBekele3
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and videoMazin Alwaaly
 
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
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentalsA B Shinde
 
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
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Lec15: Medical Image Registration (Introduction)
Lec15: Medical Image Registration (Introduction)Lec15: Medical Image Registration (Introduction)
Lec15: Medical Image Registration (Introduction)Ulaş Bağcı
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image RestorationMostafa G. M. Mostafa
 
topological features
topological featurestopological features
topological featuresrajisri2
 

What's hot (20)

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Lecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsLecture 4 Relationship between pixels
Lecture 4 Relationship between pixels
 
Block Truncation Coding
Block Truncation CodingBlock Truncation Coding
Block Truncation Coding
 
Aliasing and Antialiasing filter
Aliasing and Antialiasing filterAliasing and Antialiasing filter
Aliasing and Antialiasing filter
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
unit-3.ppt
unit-3.pptunit-3.ppt
unit-3.ppt
 
Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perception
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Chapter 3 - Fundamental Concepts in Video and Digital Audio.ppt
Chapter 3 - Fundamental Concepts in Video and Digital Audio.pptChapter 3 - Fundamental Concepts in Video and Digital Audio.ppt
Chapter 3 - Fundamental Concepts in Video and Digital Audio.ppt
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
 
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
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Frequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital ImagesFrequency Domain Filtering of Digital Images
Frequency Domain Filtering of Digital Images
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Lec15: Medical Image Registration (Introduction)
Lec15: Medical Image Registration (Introduction)Lec15: Medical Image Registration (Introduction)
Lec15: Medical Image Registration (Introduction)
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
topological features
topological featurestopological features
topological features
 

Similar to DFT,DCT TRANSFORMS.pdf

Similar to DFT,DCT TRANSFORMS.pdf (20)

imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptx
 
lec07_DFT.pdf
lec07_DFT.pdflec07_DFT.pdf
lec07_DFT.pdf
 
Image transforms
Image transformsImage transforms
Image transforms
 
IVR - Chapter 3 - Basics of filtering II: Spectral filters
IVR - Chapter 3 - Basics of filtering II: Spectral filtersIVR - Chapter 3 - Basics of filtering II: Spectral filters
IVR - Chapter 3 - Basics of filtering II: Spectral filters
 
Fast Fourier Transform (FFT) Algorithms in DSP
Fast Fourier Transform (FFT) Algorithms in DSPFast Fourier Transform (FFT) Algorithms in DSP
Fast Fourier Transform (FFT) Algorithms in DSP
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Unit ii
Unit iiUnit ii
Unit ii
 
ch3-2
ch3-2ch3-2
ch3-2
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
ch3-3
ch3-3ch3-3
ch3-3
 
Ch13
Ch13Ch13
Ch13
 
Fourier slide
Fourier slideFourier slide
Fourier slide
 
Image and Audio Signal Filtration with Discrete Heap Transforms
Image and Audio Signal Filtration with Discrete Heap TransformsImage and Audio Signal Filtration with Discrete Heap Transforms
Image and Audio Signal Filtration with Discrete Heap Transforms
 
Chapter14
Chapter14Chapter14
Chapter14
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series Introduction
 
Circular conv_7767038.ppt
Circular conv_7767038.pptCircular conv_7767038.ppt
Circular conv_7767038.ppt
 
Dft
DftDft
Dft
 
IARE_DSP_PPT.pptx
IARE_DSP_PPT.pptxIARE_DSP_PPT.pptx
IARE_DSP_PPT.pptx
 
03 image transform
03 image transform03 image transform
03 image transform
 
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
 

Recently uploaded

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

DFT,DCT TRANSFORMS.pdf

  • 1. 2D Discrete Fourier Transform (DFT)
  • 2. 2 Outline • Circular and linear convolutions • 2D DFT • 2D DCT • Properties • Other formulations • Examples
  • 3. 3 Circular convolution • Finite length signals (N0 samples) → circular or periodic convolution – the summation is over 1 period – the result is a N0 period sequence • The circular convolution is equivalent to the linear convolution of the zero-padded equal length sequences [ ] f m m * [ ] g m m [ ]* [ ] f m g m m = Length=P Length=Q Length=P+Q-1 For the convolution property to hold, M must be greater than or equal to P+Q-1. [ ]* [ ] [ ] [ ] f m g m F k G k ⇔ 0 1 0 [ ] [ ] [ ] [ ] [ ] N n c k f k g k f n g k n − = = ⊗ = − ∑
  • 4. 4 Convolution • Zero padding [ ]* [ ] [ ] [ ] f m g m F k G k ⇔ [ ] f m m * [ ] g m m [ ]* [ ] f m g m m = [ ] F k 4-point DFT (M=4) [ ] G k [ ] [ ] F k G k
  • 5. 5 In words • Given 2 sequences of length N and M, let y[k] be their linear convolution • y[k] is also equal to the circular convolution of the two suitably zero padded sequences making them consist of the same number of samples • In this way, the linear convolution between two sequences having a different length (filtering) can be computed by the DFT (which rests on the circular convolution) – The procedure is the following • Pad f[n] with Nh-1 zeros and h[n] with Nf-1 zeros • Find Y[r] as the product of F[r] and H[r] (which are the DFTs of the corresponding zero-padded signals) • Find the inverse DFT of Y[r] • Allows to perform linear filtering using DFT [ ] [ ] [ ] [ ] [ ] n y k f k h k f n h k n +∞ =−∞ = ∗ = − ∑ 0 1 0 0 [ ] [ ] [ ] [ ] [ ] + 1: length of the zero-padded seq N n f h c k f k h k f n h k n N N N − = = ⊗ = − = − ∑
  • 6. 6 2D Discrete Fourier Transform • Fourier transform of a 2D signal defined over a discrete finite 2D grid of size MxN or equivalently • Fourier transform of a 2D set of samples forming a bidimensional sequence • As in the 1D case, 2D-DFT, though a self-consistent transform, can be considered as a mean of calculating the transform of a 2D sampled signal defined over a discrete grid. • The signal is periodized along both dimensions and the 2D-DFT can be regarded as a sampled version of the 2D DTFT
  • 7. 7 2D Discrete Fourier Transform (2D DFT) • 2D Fourier (discrete time) Transform (DTFT) [Gonzalez] 2 ( ) ( , ) [ , ] j um vn m n F u v f m n e π ∞ ∞ − + =−∞ =−∞ = ∑ ∑ 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N m n F k l f m n e MN π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ • 2D Discrete Fourier Transform (DFT) 2D DFT can be regarded as a sampled version of 2D DTFT. a-periodic signal periodic transform periodized signal periodic and sampled transform
  • 8. 8 2D DFT: Periodicity 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N m n F k l f m n e MN π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ 1 1 2 0 0 1 [ , ] [ , ] k M l N M N j m n M N m n F k M l N f m n e MN π + + ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = + + = ∑∑ 1 1 2 2 0 0 1 [ , ] k l M N M N j m n j m n M N M N m n f m n e e MN π π ⎛ ⎞ ⎛ ⎞ − − − + − + ⎜ ⎟ ⎜ ⎟ ⎝ ⎠ ⎝ ⎠ = = = ∑∑ 1 • A [M,N] point DFT is periodic with period [M,N] – Proof [ , ] F k l = (In what follows: spatial coordinates=k,l, frequency coordinates: u,v)
  • 9. 9 2D DFT: Periodicity • Periodicity • This has important consequences on the implementation and energy compaction property – 1D [ , ] [ , ] [ , ] [ , ] F u v F u mM v F u v nN F u mM v nN = + = + = + + [ , ] [ , ] [ , ] [ , ] f k l f k mM l f k l nN f k mM l nN = + = + = + + f[u] u M/2 M 0 [ ] [ ] F N u F u ∗ − = The two inverted periods meet here f[k] real→F[u] is symmetric M/2 samples are enough
  • 10. 10 Periodicity: 1D f[u] u M/2 M 0 It is more practical to have one complete period positioned in [0, M-1] [ ] [ ] f k F u ↔ 0 0 2 0 2 2 2 0 [ ]e [ ] e e e ( 1) 2 ( 1) [ ] [ ] 2 u k j M u k Mk j j j k k M M k f k F u u M u M f k F u π π π π ↔ − = → = = = − − ↔ − changing the sign of every other sample puts F[0] at the center of the interval [0,M] The two inverted periods meet here
  • 11. 11 Periodicity: 2D DFT periods MxN values 4 inverted periods meet here M/2 -M/2 N/2 -N/2 F[u,v] (0,0)
  • 12. 12 Periodicity: 2D DFT periods MxN values 4 inverted periods meet here M/2 N/2 F[u,v] (0,0) M-1 N-1 0 0 2 ( ) 0 0 0 0 [ , ]e [ , ] , 2 2 ( 1) [ ] , 2 2 u k v l j M N k l f k l F u u v v M N u v M N f k F u v π + + ↔ − − = = → ⎡ ⎤ − ↔ − − ⎢ ⎥ ⎣ ⎦ data contain one centered complete period
  • 14. 14 Periodicity in spatial domain 1 1 2 0 0 [ , ] [ , ] k l M N j m n M N k l f m n F k l e π ⎛ ⎞ − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ 1 • [M,N] point inverse DFT is periodic with period [M,N] 1 1 2 ( ) ( ) 0 0 [ , ] [ , ] k l M N j m M n N M N k l f m M n N F k l e π ⎛ ⎞ − − + + + ⎜ ⎟ ⎝ ⎠ = = + + = ∑∑ 1 1 2 2 0 0 [ , ] k l k l M N j m n j M N M N M N k l F k l e e π π ⎛ ⎞ ⎛ ⎞ − − + + ⎜ ⎟ ⎜ ⎟ ⎝ ⎠ ⎝ ⎠ = = = ∑∑ [ , ] f m n =
  • 15. 15 Angle and phase spectra [ ] [ ] [ ] [ ] [ ] { } [ ] { } [ ] [ ] { } [ ] { } [ ] , 1/ 2 2 2 2 , , , Re , Im , Im , , arctan Re , [ , ] , j u v F u v F u v e F u v F u v F u v F u v u v F u v P u v F u v Φ = ⎡ ⎤ = + ⎣ ⎦ ⎡ ⎤ Φ = ⎢ ⎥ ⎣ ⎦ = modulus (amplitude spectrum) phase power spectrum For a real function [ , ] [ , ] [ , ] [ , ] [ , ] [ , ] F u v F u v F u v F u v u v u v ∗ − − = − − = Φ − − = −Φ conjugate symmetric with respect to the origin
  • 16. 16 Translation and rotation [ ] [ ] [ ] 2 2 [ , ] , , , m n j k l M N m n j k l M N f k l e F u m v l f k m l n F u v π π ⎛ ⎞ + ⎜ ⎟ ⎝ ⎠ ⎛ ⎞ − + ⎜ ⎟ ⎝ ⎠ ↔ − − − − ↔ [ ] [ ] 0 0 cos cos sin sin , , k r u l r l f r F ϑ ω ϕ ϑ ω ϕ ϑ ϑ ω ϕ ϑ = = ⎧ ⎧ ⎨ ⎨ = = ⎩ ⎩ + ↔ + Rotations in spatial domain correspond equal rotations in Fourier domain
  • 17. 17 mean value [ ] [ ] 1 1 0 0 1 0,0 , N M n m F f n m NM − − = = = ∑∑ DC coefficient
  • 18. 18 Separability • The discrete two-dimensional Fourier transform of an image array is defined in series form as • inverse transform • Because the transform kernels are separable and symmetric, the two dimensional transforms can be computed as sequential row and column one-dimensional transforms. • The basis functions of the transform are complex exponentials that may be decomposed into sine and cosine components. 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N m n F k l f m n e MN π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ 1 1 2 0 0 [ , ] [ , ] k l M N j m n M N k l f m n F k l e π ⎛ ⎞ − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑
  • 24. 24 2D Discrete Fourier Transform • Inverse DFT 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N m n F k l f m n e MN π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ • 2D Discrete Fourier Transform (DFT) 1 1 2 0 0 [ , ] [ , ] k l M N j m n M N k l f m n F k l e π ⎛ ⎞ − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ where 0,1,..., 1 k M = − 0,1,..., 1 l N = −
  • 25. 25 2D Discrete Fourier Transform • Inverse DFT 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N m n F k l f m n e MN π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ • It is also possible to define DFT as follows 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N k l f m n F k l e MN π ⎛ ⎞ − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ where 0,1,..., 1 k M = − 0,1,..., 1 l N = −
  • 26. 26 2D Discrete Fourier Transform • Inverse DFT 1 1 2 0 0 [ , ] [ , ] k l M N j m n M N m n F k l f m n e π ⎛ ⎞ − − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ • Or, as follows 1 1 2 0 0 1 [ , ] [ , ] k l M N j m n M N k l f m n F k l e MN π ⎛ ⎞ − − + ⎜ ⎟ ⎝ ⎠ = = = ∑∑ where and 0,1,..., 1 k M = − 0,1,..., 1 l N = −
  • 27. 27 2D DFT • The discrete two-dimensional Fourier transform of an image array is defined in series form as • inverse transform
  • 29. 29 2D DCT • based on most common form for 1D DCT u,x=0,1,…, N-1 “mean” value
  • 30. 30 1D basis functions Cosine basis functions are orthogonal Figure 1
  • 31. 31 2D DCT • Corresponding 2D formulation u,v=0,1,…., N-1 direct inverse
  • 32. 32 2D basis functions • The 2-D basis functions can be generated by multiplying the horizontally oriented 1-D basis functions (shown in Figure 1) with vertically oriented set of the same functions. • The basis functions for N = 8 are shown in Figure 2. – The basis functions exhibit a progressive increase in frequency both in the vertical and horizontal direction. – The top left basis function assumes a constant value and is referred to as the DC coefficient.
  • 33. 33 2D DCT basis functions Figure 2
  • 34. 34 Separability The inverse of a multi-dimensional DCT is just a separable product of the inverse(s) of the corresponding one-dimensional DCT , e.g. the one-dimensional inverses applied along one dimension at a time
  • 35. 35 Separability • Symmetry – Another look at the row and column operations reveals that these operations are functionally identical. Such a transformation is called a symmetric transformation. – A separable and symmetric transform can be expressed in the form – where A is a NxN symmetric transformation matrix which entries a(i,j) are given by • This is an extremely useful property since it implies that the transformation matrix can be pre computed offline and then applied to the image thereby providing orders of magnitude improvement in computation efficiency. T AfA =
  • 36. 36 Computational efficiency • Computational efficiency – Inverse transform – DCT basis functions are orthogonal. Thus, the inverse transformation matrix of A is equal to its transpose i.e. A-1= AT. This property renders some reduction in the pre-computation complexity.
  • 37. 37 Block-based implementation The source data (8x8) is transformed to a linear combination of these 64 frequency squares. Block size N=M=8 Block-based transform Basis function