470 likes | 510 Views
MMAT 5390: Mathematical Imaging. Lecture 5: More about Haar and Walsh Transform, DFT, Image Enhancement. Prof. Ronald Lok Ming Lui Department of Mathematics, The Chinese University of Hong Kong. For details, please refer to Lecture note Chapter 2. Definition of Haar functions:.
E N D
MMAT 5390: Mathematical Imaging Lecture 5: More about Haar and Walsh Transform, DFT, Image Enhancement Prof. Ronald Lok Ming LuiDepartment of Mathematics, The Chinese University of Hong Kong
For details, please refer to Lecture note Chapter 2 Definition of Haar functions: Recap: Haar transform
For details, please refer to Lecture Note Chapter 2 Definition of Haar transforms: (N = power of 2) Recap: Haar transform
Recap: Walsh transform For details, please refer to Lecture Note Chapter 2 Definition of Walsh functions: (N = power of 2)
Recap: Walsh transform For details, please refer to Lecture Note Chapter 2 Definition of Walsh transforms: (N = power of 2)
Haar transform elementary images Haar transform basis image. White = positive; Black = negative; Grey = 0 The i-th row j-th column elementary image is given by:
Walsh transform elementary images Walsh transform basis image. White = positive; Black = negative; Grey = 0 The i-th row j-th column elementary image is given by:
More about Haar transform Haar transform basis image. White = positive; Black = negative; Grey = 0
What are the coefficients associated to different elementary images representing? More about Haar Transform
Elementary images of Walsh transform Walsh transform elementary images. White = positive; Black = negative; Grey = 0
Compared with Haar transform Haar transform basis image. White = positive; Black = negative; Grey = 0
What is image decomposition: coefficients A quick revision: Image decomposition Elementary images (By truncating the terms with small coefficients, we can compress the image while preserving the important details) Main technique for image decomposition:
Main goal: HOW TO CHOOSE U and V? WHAT IS THE REQUIREMENT of g? A quick revision: Image decomposition So far we have learnt: Diagonal • SVD • Haar transform • Walsh transform unitary Sparse (hopefully) Haar transform matrix Sparse (hopefully) Walsh transform matrix
1D and 2D Discrete Fourier Transform: Recap: Definition of DFT For details, please refer to Lecture Note Chapter 2
Reconstruction w/ DFT decomposition • = using 1x1 elementary images (first 1 row and first 1 column elementary images; • = using 2x2 elementary images (first 2 rows and first 2 column elementary images…and so on…
The flower example: Comparison of errors
Original: Compressed: 13.6:1 Real example Truncating the small coefficients
Original: Compressed: Real example
Truncate smallest X% Fourier coefficients Real example Truncate 50% of Fourier coefficients Truncate 70% of Fourier coefficients Truncate 10% of Fourier coefficients Truncate 30% of Fourier coefficients
Truncate smallest X% Fourier coefficients Difference Image: Original minus Compressed image Real example Truncate ~63% of Fourier coefficients Original
Truncate smallest X% Fourier coefficients Difference Image: Original minus Compressed image Real example Truncate 10% of Fourier coefficients
Truncate smallest X% Fourier coefficients Real example Truncate 30% of Fourier coefficients
Truncate smallest X% Fourier coefficients Real example Truncate 50% of Fourier coefficients
Truncate smallest X% Fourier coefficients Real example Truncate 70% of Fourier coefficients
1D and 2D Even Discrete Cosine Transform: 1D: Recap: Even Discrete Cosine Transform 2D: For details, please refer to Supplementary note 5
Reconstruction w/ EDCT decomposition • = using 1x1 elementary images (first 1 row and first 1 column elementary images; • = using 2x2 elementary images (first 2 rows and first 2 column elementary images…and so on…
Odd Discrete Cosine Transform: Other similar transforms Even Discrete Sine Transform: Odd Discrete Sine Transform: All of them have explicit formula for their inverses. (For details, please refer to Supplementary note 5)
Reconstruction w/ ODCT decomposition • = using 1x1 elementary images (first 1 row and first 1 column elementary images; • = using 2x2 elementary images (first 2 rows and first 2 column elementary images…and so on…
Reconstruction w/ EDST decomposition • = using 1x1 elementary images (first 1 row and first 1 column elementary images; • = using 2x2 elementary images (first 2 rows and first 2 column elementary images…and so on…
Reconstruction w/ ODST decomposition • = using 1x1 elementary images (first 1 row and first 1 column elementary images; • = using 2x2 elementary images (first 2 rows and first 2 column elementary images…and so on…
The flower example: Comparison of errors
Original image DCT More example on DCT decomposition
Original image DCT More example on DCT decomposition
Original image DCT More example on DCT decomposition