Professional Documents
Culture Documents
the vector going from the origin to that point is equal to a weighted sum of
the units vectors of the axes.
v=4i +2j
2
i 4 x
Fourier Transform: Concept
■ A signal can be
represented as a
weighted sum of
sinusoids.
■ Fourier Transform is a
change of basis, where
the basis functions
consist of sines and
cosines (complex
exponentials).
12
A vector space consists of a set of
vectors, a field of scalars, a vector
addition operation, and a scalar
Basis Vectors and Basis Images multiplication operation.
• A basis for a vector space ~ a set of vectors
– Linearly independent ~ a v = 0 if and only if all a =0
i i i
– Uniquely represent every vector in the space by their linear
combination
~ bi vi ( “spanning set” {vi} )
• Orthonormal basis
– Orthogonality ~ inner product <x, y> = y*T x= 0
– Normalized length ~ || x ||2 = <x, x> = x*T x= 1
Fourier
transform Hough
Haar
transform KL transform transform
Discrete
cosine
transform Walsh Singular value Radon
transform decomposition transform
Discrete sine
transform Hadamard Ridgelet
transform transform
Slant Contourlet
transform transform
Orthogonal Matrices
• Orthogonal matrix is such that its
inverse is equal to its transpose
A is orthogonal if
ie,A-1=AT
or
ATA=AAT=I
Unitary Matrices
• If its inverse is equal to its
conjugate transpose
ie,A-1=A*T
or
A*TA=AA*T=I
Image Transform
1-D DFT and Vector Form
1 N 1
Z (k )
N
z ( n ) W Nnk
• { z(n) } { Z(k) }
n0
z (n) 1
N 1
n, k = 0, 1, …, N-1
N
Z ( k ) W N nk
WN = exp{ - j2 / N } k 0
Complexity O(N4)
Separable unitary Transform
• Rotation
– The angles between vectors are preserved
• Energy Compaction
– Many common unitary transforms tend to pack a large fraction
of signal energy into just a few transform coefficients
• Decorrelation
– Highly correlated input elements quite uncorrelated output
coefficients
– Covariance matrix E[ ( y – E(y) ) ( y – E(y) )*T ]
• small correlation implies small off-diagonal terms
Example
• Check whether the DFT matrix is
unitary or not
• X(0)=x(0)+x(1)+x(2)+x(3)
Compute the 2D DFT of the
4 x4 grayscale image given
1D DCT
2D DCT
1D DST
Hadamard Transform
denotes the Kronecker product of two
matrices
the Hadamard transform has good to very good energy packing
properties.
Determine p and q
p
Determine k=2 +q-1
Determine Z
1 q 1/ 2 q
H Z H z
2 Z
p/2
N 2 2
k pq p p
0 otherwise
1
then H Z H Z
If k 0
N
k 00
Example
Generate Haar basis for N=2
• Step 1:N =2
• Step 2: n=log2 2=1
• Step 3:Determine p and q
– (i) since n=1,the only value of p is 0
– (ii) so q takes the value of 0 or 1
p
• Step 4:Determine the value of k using k=2 +q-1
p q k
0 0 0
0 1 1
• Step 5:Determine Z
– Z[0,1){0/2 ,1/2}
• Step 6: q 1 q 1/ 2
2 Z
p/2
2 p
2p
p=0
1
q 1/ 2 q
Z H z
q=0 q=1 H 2
p/2
Z
N 2 2
k pq p p
0 otherwise
1
H Z H Z
If k 0 then
N
k 00
1 0 Z 1/ 2
1
Z H z
H 1 1/ 2 Z 1
2
k pq
0 otherwise
q 1 q 1/ 2
2 Z
p/2
2 p
2 p
1
q 1/ 2 q
H Z H z
2 Z
p/2
N 2 2
k pq p p
0 otherwise
1
H Z H Z
If k 0 then
N
k 00
1 0 Z 1/ 2
1
Z H z
H 1 1/ 2 Z 1
2
k pq
0 otherwise
Haar basis for N=2
k n 0 1
0 1/√2 1/√2
1 1/√2 -1/√2