Title: Orthogonal%20Transforms
1Orthogonal Transforms
2Review
- Introduce the concepts of base functions
- For Reed-Muller, FPRM
- For Walsh
- Linearly independent matrix
- Non-Singular matrix
- Examples
- Butterflies, Kronecker Products, Matrices
- Using matrices to calculate the vector of
spectral coefficients from the data vector
3Orthogonal Functions
4(No Transcript)
5Illustrate it for Walsh and RM
6(No Transcript)
7(No Transcript)
8(No Transcript)
9Mean Square Error
10(No Transcript)
11(No Transcript)
12Important result
13- We want to minimize this kinds of errors.
-
- Other error measures are also used.
14Unitary Transforms
- Unitary Transformation for 1-Dim. Sequence
- Series representation of
- Basis vectors
- Energy conservation
Here is the proof
15- Unitary Transformation for 2-Dim. Sequence
- Definition
- Basis images
- Orthonormality and completeness properties
- Orthonormality
- Completeness
16- Unitary Transformation for 2-Dim. Sequence
- Separable Unitary Transforms
- separable transform reduces the number of
multiplications and additions from to - Energy conservation
17Properties of Unitary Transform
transform
Covariance matrix
18Example of arbitrary basis functions being
rectangular waves
19This determining first function determines next
functions
201
0
21(No Transcript)
22Small error with just 3 coefficients
23This slide shows four base functions multiplied
by their respective coefficients
24This slide shows that using only four base
functions the approximation is quite good
End of example
25Orthogonal and separable Image Transforms
26Extending general transforms to 2-dimensions
27Forward transform
inverse transform
separable
28Fourier Transform
separable
29Extension of Fourier Transform to two dimensions
30(No Transcript)
31(No Transcript)
32(No Transcript)
33Discrete Fourier Transform (DFT)
New notation
34(No Transcript)
35Fast Algorithms for Fourier Transform
Task for students Draw the butterfly for these
matrices, similarly as we have done it for Walsh
and Reed-Muller Transforms
2
Pay attention to regularity of kernels and order
of columns corresponding to factorized matrices
36Fast Factorization Algorithms are general and
there is many of them
37- 1-dim. DFT (cont.)
- Calculation of DFT Fast Fourier Transform
Algorithm (FFT) - Decimation-in-time algorithm
Derivation of decimation in time
38- 1-dim. DFT (cont.)
- FFT (cont.)
- Decimation-in-time algorithm (cont.)
Butterfly for Derivation of decimation in time
Please note recursion
39- 1-dim. DFT (cont.)
- FFT (cont.)
- Decimation-in-frequency algorithm (cont.)
Derivation of Decimation-in-frequency algorithm
40Decimation in frequency butterfly shows recursion
- 1-dim. DFT (cont.)
- FFT (cont.)
- Decimation-in-frequency algorithm (cont.)
41Conjugate Symmetry of DFT
- For a real sequence, the DFT is conjugate symmetry
42- Use of Fourier Transforms for fast convolution
43Calculations for circular matrix
44By multiplying
45W ? Cw
In matrix form next slide
46w ? Cw
47Here is the formula for linear convolution, we
already discussed for 1D and 2D data, images
48Linear convolution can be presented in matrix
form as follows
49As we see, circular convolution can be also
represented in matrix form
50Important result
51Inverse DFT of convolution
52- Thus we derived a fast algorithm for linear
convolution which we illustrated earlier and
discussed its importance. - This result is very fundamental since it allows
to use DFT with inverse DFT to do all kinds of
image processing based on convolution, such as
edge detection, thinning, filtering, etc.
532-D DFT
54Circular convolution works for 2D images
55Circular convolution works for 2D images So we
can do all kinds of edge-detection, filtering etc
very efficiently
- 2-Dim. DFT (cont.)
- example
56- 2-Dim. DFT (cont.)
- Properties of 2D DFT
- Separability
57- 2-Dim. DFT (cont.)
- Properties of 2D DFT (cont.)
- Rotation
58- 2-Dim. DFT (cont.)
- Properties of 2D DFT
- Circular convolution and DFT
- Correlation
59- 2-Dim. DFT (cont.)
- Calculation of 2-dim. DFT
- Direct calculation
- Complex multiplications additions
- Using separability
- Complex multiplications additions
- Using 1-dim FFT
- Complex multiplications additions ???
Three ways of calculating 2-D DFT
60Karhunen-Leove Transform(KLT)
Covariance matrix
61(No Transcript)
62 63This happens if ??1
64Category of transforms
These are what I called earlier transforms with
standard butterflies
65Discrete Cosine Transform (DCT)
This is DCT
66DCT is an orthogonal transformm so its inverse
kernel is the same as forward kernel
This is inverse DCT
67(No Transcript)
68DCT can be obtained from DFT
69- Discrete Cosine Transform is asymptotically
equivalent to Karhunen-Loeve
We take a 2N-point DFT
This is why guys in industry believe that only
DCT is worth their work.
70Properties of DCT real, orthogonal,
energy-compacting, eigenvector-based
71The eigenvectors of R and Qc are very close
72- Basis Functions for 1-dim. DCT(N 16)
73There are many DCT fast algorithms and hardware
designs.
74There are many DCT fast algorithms and hardware
designs.
Many fast algorithms are available fast algorithm
Lee(1-D), Lee-Cho(2-D) VLSI algorithm
regularity, local interconnection,
moduality ref 1.Nam Ik Cho and Sang Uk Lee,
Fast algorithm and implementation of 2-D
DCT. IEEE Trans Circuits and Systems, vol.
38, no.3, pp.297-305, March 1991. 2.Nam Ik Cho
and Sang Uk Lee, DCT algorithm for VLSI parallel
implementation IEEE Trans. ASSP, vol.
ASSP-38, no. 1, pp.121-127, Jan, 1990.
75- Discrete Sine Transform(DST)
Similar to DCT.
76- 1-dim. DST (cont.)
- Basis Functions for 1-dim. DST (N16)
77Walsh Transform
78Here we calculate the matrix of Walsh coefficients
79Here we calculate the matrix of Walsh coefficients
80Here we calculate the matrix of Walsh coefficients
81We have done it earlier in different ways
Here we calculate the matrix of Walsh coefficients
82Symmetry of Walsh
Think about other transforms that you know, are
they symmetric?
83Two-Dimensional Walsh Transform
84Two-dimensional Walsh
Inverse Two-dimensional Walsh
85Properties of Walsh Transforms
86Here is the separable 2-Dim Inverse Walsh
87Example for N4
88odd
even
89Discuss the importance of this figure
90Hadamard Transform
We will go quickly through this material since it
is very similar to Walsh
91(No Transcript)
92separable
93Example of calculating Hadamard coefficients
analogous to what was before
94(No Transcript)
95(No Transcript)
96(No Transcript)
97(No Transcript)
98(No Transcript)
99(No Transcript)
100(No Transcript)
101Standard Trivial Functions for Hadamard
One change
two changes
102(No Transcript)
103Discrete Walsh-Hadamard transform
Now we meet our old friend in a new light again!
104(No Transcript)
105(No Transcript)
106(No Transcript)
107(No Transcript)
108Relationship between Walsh-ordered and
Hadamard-ordered
109Nonsinusoidal orthogonal function
Haar Transform
- Haar transform
- Haar function (1910, Haar) periodic,
orthonormal, complete
110(No Transcript)
111(No Transcript)
112Slant transform
113(No Transcript)
114(No Transcript)
115(No Transcript)
116SVD(Singular Value Decomposition)
117(No Transcript)
118(No Transcript)
1192-D linear processing technique
120(No Transcript)
121Questions to Students
- You do not have to remember derivations but you
have to understand the main concepts. - Much software for all discussed transforms and
their uses is available on internet and also in
Matlab, OpenCV, and similar packages.
- How to create an algorithm for edge detection
based on FFT? - How to create a thinning algorithm based on DCT?
- How to use DST for convolution show example.
- Low pass filter based on Hadamard.
- Texture recognition based on Walsh