Image Transforms: DFT-Properties, Walsh, Hadamard, Discrete Cosine, Haar and Slant Transforms The Hotelling Transform
Image Transforms: DFT-Properties, Walsh, Hadamard, Discrete Cosine, Haar and Slant Transforms The Hotelling Transform
Image Transforms: DFT-Properties, Walsh, Hadamard, Discrete Cosine, Haar and Slant Transforms The Hotelling Transform
i 2 u x
F(u ) f( x) e dx
Interpretation:
The input signal f (x) is multiplied with the basis function. For each value of
u, we get a value depending on the correlation between the two signals. Or in
other words what amount of the basis function is contained in f (x), the input
signal. If the two signals match we get a larger Fourier component or
coefficient and if not, we get a smaller component.
How FT Work
Cont.
Or the other interpretation is we are representing the input signal as a
weighted sum of the basis functions
i 2 u x
f ( x) F (u ) e du
Be linearly independent.
2-D Fourier Transform
Two-Dimensional Fourier Transform:
i 2 (ux vy )
F(u , v) f ( x , y ) e dxdy
Two-Dimensional Inverse Fourier Transform:
i 2 (ux vy )
f ( x, y ) F(u , v ) e dudv
2-D DISCRETE FOURIER
TRANSFORM
1-D DFT
The 1-D DFT equation is given by
N 1 j 2kn
X ( k ) x ( n) e N
k = 0, 1. . . . .N-1
n 0
1 1 . . 1
1 WN1 . . WNN 1
WN . . . . .
. . . . .
1 WNN 1 . . WN( N 1)( N 1)
1-D DFT eg.
Consider an input sequence having 4 samples x (n) = {x(0),
x(1), x(2), x(3)}
After computation of DFT we will get 4 DFT coefficients.
The transformation matrix is
1 1 1 1
1 j 1 j
W4
1 1 1 1
1 j 1 j
1-D DFT eg.
Each row of the Transformation matrix
represents the 4 basis vectors and the
component along each of the basis vector is
calculated by finding the dot product. Or
projecting the input signal to each of the
basis functions.
For eg. If x (n) = {1,2,2,1}
1-D DFT eg.
X (k) = x (n) W4
= [ 1 2 2 1] 1 1 1 1
1 j 1 j
1 1 1 1
1 j 1 j
N1 1 N 2 1 j 2k1n1 j 2k 2 n2
X (k1 , k 2 ) x(n , n ) e
n1 0 n 2 0
1 2
N1
e N2
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 j j j j j
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 j
j j j j
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 j j j j j
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 j
j j j j
2-D DFT eg
Taking the other three row
basis vectors and doing the
same procedure as above 1 2 3 4
we get 12 (3x4) more basis 5
6 7 8
images.
Now project the input to 1 2 3 4
these basis images to get the
coefficients. 5 6 7 8
Consider an input array
given by
2-D DFT eg.
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 j 1 j 1 j 1 j 1 j 1 j 1 j 1 j
[1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8]
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 j 1 j 1 j 1 j 1 j 1 j 1 j 1 j
1 1 1 1 j j j j 1 1 1 1 j j j j
1 j 1 j j
1 j 1 1 j 1 j j 1 j 1
1 1 1 1 j j j j 1 1 1 1 j j j j
1 j 1 j j 1 j 1 1 j 1 j j 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1
1 j 1 j 1 j 1 j 1 j
1 j 1 j 1 j
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 j 1 j 1 j 1 j 1 j 1 j
1 j 1 j
1 1 1 1 j j j j 1 1 1 1 j j j j
1 j 1 j j 1 j 1 1 j 1 j j 1 j 1
1 1 1 1 j j j j 1 1 1 1 j j j j
1 j 1 j j 1 1 1 1 j 1 j j 1 j 1
2-D DFT eg.
Another way of getting the coefficients is
Xkl = Σ x(n1,n2) Ө Wk WlT
Sum of all
Outer product
elements in
operation
the product
Point by point
multiplication of
corresponding
k,l th element
elements
or coefficient
2-D DFT cont.
But since the basis functions are all separable
we can do successive row and column
operations using the 1-D DFT basis vectors.
Then the equation becomes,
N 11 N 21 j 2 k 2 n2
j 2 k1 n1
X (k1, k 2) x ( n1, n 2) e N2
e N1
n1 0 n 20
2-D DFT cont.
1 2 3 4 1 1 1 1 10 2 2 j 2 2 2 j
5 6 7 8 1 j 1 j 26 2 2 j 2 2 2 j
1 2 3 4 1 1 1 1 10 2 2 j 2 2 2 j
5 6 7 8 1 j 1 j 26 2 2 j 2 2 2 j
1 1 1 1 10 22 j 2 2 2 j 72 8 8 j 8 8 8 j
1 j 1 j 26 22 j 2 2 2 j 0 0 0 0
1 1 1 1 10 22 j 2 2 2 j 32 0 0 0
1 j 1 j 26 22 j 2 2 2 j 0 0 0 0