Refers To A Class of Unitary Matrices Used For Representing Images
Refers To A Class of Unitary Matrices Used For Representing Images
Transforms
Refers to a class of unitary matrices used for
representing images
Unitary Transforms
• Unitary Transformation for 1-Dim. Sequence
– Series representation of {u (n),0 n N 1}
N 1
v Au v(k ) a(k , n)u (n), 0 k N 1
n 0
N 1
u A* v u (n) a* (k , n)v(k ), 0 n N 1
n 0
N 1 N 1
( || v || | v( k ) | u A Au u u | u (n) |2 || u ||2 )
2 2 *T *T *T
k 0 n 0
• Unitary Transformation for 2-Dim. Sequence
– Separable Unitary Transforms
ak ,l (m, n) ak (m)bl (n)
N 1 N 1
v(k , l ) ak (m)u (m, n)al (n) V AUAT
m 0 n 0
N 1 N 1
u (m, n) ak* (m)v(k , l )al* (n) U A*T VA *
k 0 l 0
• separable transform reduces the number of multiplications and
additions from O( N 4 ) to O( N 3 )
– Energy conservation
N 1 N 1 N 1 N 1
| u (
m 0 n 0
m, n ) | 2
| v ( k ,
k 0 l 0
l ) | 2
Discrete Fourier Transform (DFT)
km 1
N 1 N 1
1
f (m, n)
N k 0
WN
N
F (k , l )W
l 0
ln
N
,
m,n 0, , N 1
• 2-Dim. DFT (cont.)
– Properties of 2D DFT (cont.)
• Rotation
f (r , 0 ) F ( , 0 )
(a) a sample image (b) its spectrum (c) rotated image (d) resulting spectrum
• 2-Dim. DFT (cont.)
– Properties of 2D DFT
• Circular convolution and DFT
f (m, n) g (m, n) f ( p, q) g
p q
C ( m p, n q )
f (m, n) * g (m, n) F (k , l )G (k , l )
f (m, n) g (m, n) F (k , l ) * G (k , l )
• Correlation
R fg (m, n) f (m, n) g (m, n)
p q
f * ( p, q ) g C ( m p, n q )
f (m, n) g (m, n) F * (k , l )G (k , l )
f * (m, n) g (m, n) F (k , l ) G (k , l )
Category of transforms
Discrete Cosine Transform
(DCT)
The N point DFT X(k) of a real sequence x(n) is a
complex sequence satisfying the symmetry condition
X(k)=X*(-K))N
For N even ,DFT samples X(0) and X(N-2)/2) are real and
distinct.Remaining N-2 samples are complex ,and only half of these
samples are distinct and remaining are the complex conjugate of
these samples .
For N odd,DFT samples X(0) is real,and remaining N-1 samples
are comples of which only half of these samples are distinct
>There is a redundancy in DFT based frequency
domain representation This is DCT
Discrete Cosine Transform
(DCT)
This is DCT
Discrete Cosine Transform
(DCT)
This is DCT
DCT is an orthogonal transformm so its
inverse kernel is the same as forward kernel
This is inverse
DCT
DCT can be obtained from DFT
orthogonal, energy-
compacting, eigenvector-based
Properties of the DCT
1.The DCT is real and orthogonal.
C C C 1 C t
2 x n cos k 2n 1 ,
j 22N k
e 2
2N 0 k 2N 1
n 0
v k
0 , otherwise
,
N 1
u n 2
N 1 v k sin k 1 n 1
N 1 0 n N 1
k 0
k , n 2
N 1 sin k N11n 1 , 0 k, n N 1
S S S T S 1
fast algorithm
DST is close to the KLT, provided that 0.5
Similar to DCT.
Walsh Transform
Here we calculate the matrix of Walsh coefficients
Here we calculate the matrix of Walsh coefficients
Here we calculate the matrix of Walsh coefficients
We have
done it
earlier in
different
ways
even
Discuss the importance of this figure
Hadamard Transform
One change
two changes
Discrete Walsh-Hadamard
transform
1) Hadamard transform
1 1 1
H1 1 1
2 Now we meet
H n 1 H n 1 our old friend
1 in a new light
H n H n 1 H1
2 H again!
n 1 H n 1
# of sign changes
sequency
1 1 1 1 0
1 1 1 1 1 3
H2
2 1 1 1 1 1
1 1 1 1 2
sequency
1 1 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 7
1 1 1 1 1 1 1 1 3
H H2
H3
1 2 1 1 1 1 1 1 1 1 1 4
8 H H 8 1 1 1 1 1 1 1 1 1
2 2
1 1 1 1 1 1 1 1 6
1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 5
natural or Hadamard order
also can be generated by sampling the Walsh function (1923, Walsh)
Walsh - Hadamard transform
sequency
1 1 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 2
1 1 1 1 1 1 1 1 1 3
H3
8 1 1 1 1 1 1 1 1 4
1 1 1 1 1 1 1 1 5
1 1 1 1 1 1 1 1 6
1 1 1 1 1 1 1 1 7
sequency or Walsh order
1 N 1
v(k )
N m 0
u (m)(1) b ( k ,m )
1 N 1
u ( m)
N k 0
v ( k )( 1) b ( k ,m )
n 1
where b(k , m) ki mi , n log 2 N
i 0
Properties
1. H H H t H 1
2. no multiplication
3. fast algorithm
Relationship between Walsh-ordered
and Hadamard-ordered
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
2 2 2 2 0 0 0 0
1 0 0 0 0 2 2 2 2
H8
8 2 2 0 0 0 0 0 0
0 0 2 2 0 0 0 0
0 0 0 0 2 2 0 0
0 0 0 0 0 0 2 2
Properties
1. H H , H 1 H t
2. fast algorithm, O( N ) operations
for N 1 vector
3. very poor energy compaction
Fourier Transform
• ‘Fourier Transform’ transforms one function into
another domain , which is called the frequency
domain representation of the original function
• The original function is often a function in the
Time domain
• In image Processing the original function is in the
Spatial Domain
• The term Fourier transform can refer to either the
Frequency domain representation of a function or
to the process/formula that "transforms" one
function into the other.
Our Interest in Fourier Transform
• We will be dealing only with functions (images) of
finite duration so we will be interested only in Fourier
Transform
Applications of Fourier Transforms