Module 2 21EC732
Module 2 21EC732
+
t1 t2 t3 t4
h1 h2 h3 h4
2
One Dimensional Linear Transform
• Let CN represent the N dimensional complex space.
• Let h0, h1, …, hN-1 represent N linearly independent
vectors in CN.
• Any vector f єCN can be represented as a linear
combination of h0, h1, …, hN-1 :
N 1
f t(k)h k Bt,
k 0
t(0) t B1f Af
t(1)
where B [h 0 ,h1 ,...,h N 1 ], t . f and t form a transform pair
⁝
t(N 1)
3
Inner Product
• Definition of inner product N 1
f1 ,f 2 f1 f 2 f1 (n) f 2 (n)
H *
n0
• Orthogonal f1 ,f 2 0
N 1
• 2-Norm of a vector f, f f f | f (n) |2
2 H
f
n0
4
Orthonormal Basis Vectors (OBV)
1 k l
h k ,h l k ,l
• {hk, k=0,…N-1} are OBV if 0 k l
• With OBV
N 1 N 1
h l ,f h l , t(k)h k t(k) h l ,h k t(l) h l H f
k 0 k 0
hH
0H
h1
t f B H
f Af
⁝ H
hN 1
B 1 B H , or B H B BB H I. B is unitary
5
Definition of Unitary Transform
h H0
hH
t 1 f B H f Af
⁝
H
• Inverse transform h N 1
N 1
f (n) t(k)hk (n), 𝐴𝐻 = 𝐴∗ 𝑇
k 0 𝐴𝐻 = 𝐴𝑇 if 𝐴 is real
N 1
f t(k)h k h 0 h1 ! h N 1 t Bt A H t
k 0
6
2-D orthogonal and unitary
transforms
v(k,l) u(m,n)a
m0 n0
k ,l
(m,n) 0 k,l N 1
N 1 N 1
u(m,n) v(k,l)a
k 0 l0
*
k ,l
(m,n) 0 m,n N 1
N 1 N 1
orthonormality :
m0 n0
*
a k ,l (m,n)a k,l (m,n) (k k ,l l )
N 1 N 1
completeness : a
k 0 l0
k ,l
(m,n)a k*,l (m,n ) (m m,n n )
u(m,n) v(k,l)a
k 0 l0
*
k ,l
(m,n) v(k,l) U, A *k ,l
N 1 N 1
9
the (k, l)-th basis image
Digital Image Processing-21EC732 11/28/2024
Basis images
k 0 l0
2 1 2 1 1 2 1 1
1 1 1 5 1
1 1 1 2
*T
A VA
*
12 Digital Image Processing-21EC732 2 1 1 2
0 1 1 3 4 11/28/2024
Properties of unitary transform
Given v Au (A is a unitary transform)
v u
2 2
, i.e., energy-conserved
a unitary transformation is a rotation of the basis
coordinates , or a rotation of the vector u in N-
Dimensional vector space
Unitary transform tends to concentrate most of the
signal energy on a small set of transform
coefficients
µ v Aµ u R v AR uA*T
13 Digital Image Processing-21EC732 11/28/2024
Properties of unitary transform
(cont)
1 k 0,..., N 1
v(k) u(n)W kn
N
N n0
N 1
1 v(k)WNkn n 0,..., N 1
u(n)
N k 0
j2
WN exp
N
N×N transform matrix F for v Fu
1
F WN ,
kn
0 k, n N 1
N
Digital Image Processing-21EC732
11/28/2024
15
Properties of DFT
Symmetry F F T F 1 F * (unitary : F 1 F )
*T
1
v(k,l) u(m,n)W NkmW Nln 0 k,l N 1
N m0 n0
N 1 N 1
1
u(m,n) v(k,l)W NkmW Nln 0 m,n N 1
N k 0 l 0
In matrix form
V FUF T FUF
u~(n) u(2n) N
u~(N n 1) u(2n 1) 0 n ( ) 1
2
DST and DST-1 are the same in the form (cf. DCT)
DST≠ Imagery {DFT}
For first-order stationary Markov sequence with
correlation (-0.5, 0.5), the energy compaction of
DST is approximate to KL transform
32 Digital Image Processing-21EC732 11/28/2024
(Walsh-) Hadamard transform
Kronecker
Hadamard matrix operator
H n1
1 1 H n H n1 H1 1 n1
H
H1 1
2 1 1 2 H n1 H n1
Components of HT vector contain only 1 and -1
The number of transitions from 1 to -1 is called
sequency (like in the continuous case)
1 1 1 1 1 1 1 1 0
1
1 1 1 1 1 1 1 7 sequency
1 1 1 1 1 1 1 1 3
Not in order
1 1 1 1 1 1 1 1 1 4
H3
8 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 6
1 1 1 1 1 1 1 1
Digital Image Processing-21EC732 2
33 1 11/28/2024
1 1 1 1 1 1 1 5
(Walsh-) Hadamard transform
(cont.)
Hadamard transform pair :
N 1
1
v(k ) b ( k ,m )
0 k N 1
v Hu N
u(m)(1) ,
m0
u Hv
N 1
1
u(m) v(k)(1) b ( k ,m )
, 0 m N 1
N k 0
k m
n1
b(k,m) i i
k i ,mi 0,1
i0
39
butProcessing-21EC732
Digital Image related to its 2nd-order statistics 11/28/2024
KL transform of 2-D image
FFT, DCT, DST all are special cases of KL transform
For an image u(m, n) of N×N pixels, its autocorrelation
function denoted as r(m,n;m ,n ) (or an N N R matrix), 2 2
separable
Kronecker
R R1 R 2 Ψ Φ1 Φ2 operator
problems of R1, R2 ( N N )
J m 1 E 2
N 1
1
u(n) z(n) Tr[E{(u z)(u z)*T }]
N n0 N
42 Digital Image Processing-21EC732 11/28/2024
Properties of the KL transform (cont.)
Minimum transmission rate at a given distortion
In a noisy channel, given a distortion specification,
1
D E[(u u. )*T (u u. )]
Find A KL and B KL (KL transform) such that J m is minimized for
each value of m [1, N ] . (KL is effective in compacting the energy)
Select A Φ*T and B Φ , AB I , and columns of are sorted
according to their corresponding eigenvalues .....
0 1 2 N 1
N
KL transform can, among all unitary transformation A (include A
= I ), achieve the minimum transmission rate
R(Φ*T ) R(A)
u A v v. u.
Digital Image Processing-21EC732(unitary)
channel A*T
43 11/28/2024
An example of KL-transform