Digital Image Processing

Slides:



Advertisements
Similar presentations
Eigen Decomposition and Singular Value Decomposition
Advertisements

Eigen Decomposition and Singular Value Decomposition
3D Geometry for Computer Graphics
Chapter 28 – Part II Matrix Operations. Gaussian elimination Gaussian elimination LU factorization LU factorization Gaussian elimination with partial.
Tensors and Component Analysis Musawir Ali. Tensor: Generalization of an n-dimensional array Vector: order-1 tensor Matrix: order-2 tensor Order-3 tensor.
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Face Recognition Recognized Person Face Recognition.
Chapter 5 Orthogonality
Linear Subspace Transforms PCA, Karhunen- Loeve, Hotelling csc610, 2001.
Math for CSLecture 41 Linear Least Squares Problem Over-determined systems Minimization problem: Least squares norm Normal Equations Singular Value Decomposition.
Borrowed from UMD ENEE631 Spring’04
3D Geometry for Computer Graphics
3D Geometry for Computer Graphics
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
E.G.M. PetrakisDimensionality Reduction1  Given N vectors in n dims, find the k most important axes to project them  k is user defined (k < n)  Applications:
Digital Image Processing Final Project Compression Using DFT, DCT, Hadamard and SVD Transforms Zvi Devir and Assaf Eden.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Orthogonal Transforms
CS 485/685 Computer Vision Face Recognition Using Principal Components Analysis (PCA) M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka Virginia de Sa (UCSD) Cogsci 108F Linear.
SVD(Singular Value Decomposition) and Its Applications
Dimensionality Reduction: Principal Components Analysis Optional Reading: Smith, A Tutorial on Principal Components Analysis (linked to class webpage)
Linear Algebra Review 1 CS479/679 Pattern Recognition Dr. George Bebis.
8.1 Vector spaces A set of vector is said to form a linear vector space V Chapter 8 Matrices and vector spaces.
Transform Coding Heejune AHN Embedded Communications Laboratory
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Matrices and Vectors Objective.
CS654: Digital Image Analysis Lecture 15: Image Transforms with Real Basis Functions.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
CS654: Digital Image Analysis Lecture 12: Separable Transforms.
EE465: Introduction to Digital Image Processing 1 Data Compression: Advanced Topics  Huffman Coding Algorithm Motivation Procedure Examples  Unitary.
1 Recognition by Appearance Appearance-based recognition is a competing paradigm to features and alignment. No features are extracted! Images are represented.
SVD: Singular Value Decomposition
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
N– variate Gaussian. Some important characteristics: 1)The pdf of n jointly Gaussian R.V.’s is completely described by means, variances and covariances.
Image transformations Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng Kung University.
Algorithms 2005 Ramesh Hariharan. Algebraic Methods.
Linear Subspace Transforms PCA, Karhunen- Loeve, Hotelling C306, 2000.
EIGENSYSTEMS, SVD, PCA Big Data Seminar, Dedi Gadot, December 14 th, 2014.
1. Systems of Linear Equations and Matrices (8 Lectures) 1.1 Introduction to Systems of Linear Equations 1.2 Gaussian Elimination 1.3 Matrices and Matrix.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
Feature Extraction 主講人:虞台文. Content Principal Component Analysis (PCA) PCA Calculation — for Fewer-Sample Case Factor Analysis Fisher’s Linear Discriminant.
Instructor: Mircea Nicolescu Lecture 8 CS 485 / 685 Computer Vision.
CS654: Digital Image Analysis Lecture 11: Image Transforms.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) JPEG block based transform coding.... Why DCT for Image transform? DFT DCT.
Chapter 13 Discrete Image Transforms
Unsupervised Learning II Feature Extraction
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Signal Prediction and Transformation Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
Chapter 8 Lossy Compression Algorithms
Singular Value Decomposition and its applications
Image Transformation Spatial domain (SD) and Frequency domain (FD)
References Jain (a text book?; IP per se; available)
Introduction The central problems of Linear Algebra are to study the properties of matrices and to investigate the solutions of systems of linear equations.
Review of Linear Algebra
CS479/679 Pattern Recognition Dr. George Bebis
An Example of 1D Transform with Two Variables
Matrices and vector spaces
LECTURE 10: DISCRIMINANT ANALYSIS
Lecture 8:Eigenfaces and Shared Features
Matrices and Vectors Review Objective
Digital Image Procesing Discrete Walsh Trasform (DWT) in Image Processing Discrete Hadamard Trasform (DHT) in Image Processing DR TANIA STATHAKI READER.
Singular Value Decomposition
4. DIGITAL IMAGE TRANSFORMS 4.1. Introduction
1-D DISCRETE COSINE TRANSFORM DCT
Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors.
Feature space tansformation methods
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
LECTURE 09: DISCRIMINANT ANALYSIS
Chapter 8 The Discrete Fourier Transform
Linear Algebra: Matrix Eigenvalue Problems – Part 2
Presentation transcript:

Digital Image Processing Unitary Transforms 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Unitary Transforms Sort samples f(x,y) in an MxN image (or a rectangular block in the image) into colunm vector of length MN Compute transform coefficients where A is a matrix of size MNxMN The transform A is unitary, iff If A is real-valued, i.e., A-1=A*, transform is „orthonormal“ 7/15/2019 Duong Anh Duc - Digital Image Processing

Energy conservation with unitary transforms For any unitary transform we obtain Interpretation: every unitary transform is simply a rotation of the coordinate system. Vector lengths („energies“) are conserved. 7/15/2019 Duong Anh Duc - Digital Image Processing

Energy distribution for unitary transforms Energy is conserved, but often will be unevenly distributed among coefficients. Autocorrelation matrix Mean squared values („average energies“) of the coefficients ci are on the diagonal of Rcc 7/15/2019 Duong Anh Duc - Digital Image Processing

Eigenmatrix of the autocorrelation matrix Definition: eigenmatrix F of autocorrelation matrix Rff F is unitary The columns of F form an orthonormalized set of eigenvectors of Rff, i.e., Rff F = FL is a diagonal matrix of eigenvalues. Rff is symmetric nonnegative definite, hence i  0 for all i Rff is normal matrix, i.e., , hence unitary eigenmatrix exists 7/15/2019 Duong Anh Duc - Digital Image Processing

Karhunen-Loeve transform Unitary transform with matrix A = FH where the columns of F are ordered according to decreasing eigenvalues. Transform coefficients are pairwise uncorrelated Rcc = ARffAH = FHRffF = FHFL = L Energy concentration property: No other unitary transform packs as much energy into the first J coefficients, where J is arbitrary Mean squared approximation error by choosing only first J coefficients is minimized. 7/15/2019 Duong Anh Duc - Digital Image Processing

Optimum energy concentration by KL transform To show optimum energy concentration property, consider the truncated coefficient vector where IJ contain ones on the first J diagonal positions, else zeros. Energy in first J coefficients for arbitrary transform A Lagrangian cost function to enforce unit-length basis vectors Differentiating L with respect to aj yields neccessary condition 7/15/2019 Duong Anh Duc - Digital Image Processing

Basis images and eigenimages For any unitary transform, the inverse transform can be interpreted in terms of the superposition of „basis images“ (columns of AH) of size MN. If the transform is a KL transform, the basis images, which are the eigenvectors of the autocorrelation matrix Rff , are called „eigenimages.“ If energy concentration works well, only a limited number of eigenimages is needed to approximate a set of images with small error. These eigenimages form an optimal linear subspace of dimensionality J. 7/15/2019 Duong Anh Duc - Digital Image Processing

Computing eigenimages from a training set How to measure MNxMN autocorrelation matrix? Use training set Define training set matrix and calculate Problem 1: Training set size should be L >> MN If L < MN, autocorrelation matrix Rff is rank - deficient Problem 2: Finding eigenvectors of an MNxMN matrix. Can we find a small set of the most important eigenimages from a small training set L << MN 7/15/2019 Duong Anh Duc - Digital Image Processing

Sirovich and Kirby method Instead of eigenvectors of SSH, consider the eigenvectors of SHS, i.e., Premultiply both sides by S: By inspection, we find that are eigenvectors of SSH For this gives rise to great computational savings, by Computing the LxL matrix SHS Computing L eigenvectors of SHS Computing eigenimages corresponding to the L0  L largest eigenvalues according as 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Example: eigenfaces The first 8 eigenfaces obtained from a training set of 500 frontal views of human faces. Can be used for face recognition by nearest neighbor search in 8-d „face space.“ Can be used to generate faces by adjusting 8 coefficients. 7/15/2019 Duong Anh Duc - Digital Image Processing

Gender recognition using eigenfaces Task: Male or female? Eigenimages from a data base of 20 and 20 female training images 7/15/2019 Duong Anh Duc - Digital Image Processing

Gender recognition using eigenfaces (cont.) Recognition accuracy using 8 eigenimages 7/15/2019 Duong Anh Duc - Digital Image Processing

Block-wise image processing Subdivide image into small blocks Process each block independently from the others Typical blocksizes: 8x8, 16x16 7/15/2019 Duong Anh Duc - Digital Image Processing

Separable blockwise transforms Image block written as a square matrix f c = AT.f.A This can only be done, if transform is separable in x and y, i.e., AT = AA Inverse transform f = A*.c.AH (NxN coefficients) (N2xN2) 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Haar transform Haar transform matrix for sizes N=2,4,8 Can be computed by taking sums and differences Fast algorithms by recursively applying Hr2 7/15/2019 Duong Anh Duc - Digital Image Processing

Haar transform example Original Cameraman 256x256 256x256 Haar transform of Cameraman 7/15/2019 Duong Anh Duc - Digital Image Processing

Haar transform example Original Einstein 256x256 256x256 Haar transform of Einstein 7/15/2019 Duong Anh Duc - Digital Image Processing

Haar transform example Original Lena 512x512 512x512 Haar transform of Lena 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Hadamard transform Transform matrices can be recursively generated Example Note that Hadamard Coefficients need reordering to concentrate energy 7/15/2019 Duong Anh Duc - Digital Image Processing

Discrete Fourier transform For DFT of order N, define Transform matrix Definition for general N, fast algorithms for N=2m DFT coefficients are complex (even if input image is real) Inverse transform DFTN-1 = DTFH = DTF* 7/15/2019 Duong Anh Duc - Digital Image Processing

Discrete cosine transform Transform matrix Can be interpreted as DFT of a mirror-extended image block (shown here for 2-d DCT) Transform is used in many coding standards (JPEG, MPEG) 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Basis images of an 8x8 DCT 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Blockwise DCT example Original Lena 256x256 Blockwise 8x8 DCT of Lena 7/15/2019 Duong Anh Duc - Digital Image Processing

Comparison of block transforms Comparison of 1-D basis functions for block size N=8 7/15/2019 Duong Anh Duc - Digital Image Processing

Comparison of block transforms (cont.) DCT Hadamard Haar 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing Transform Coding 7/15/2019 Duong Anh Duc - Digital Image Processing

Transform Coding (cont.) 7/15/2019 Duong Anh Duc - Digital Image Processing

Duong Anh Duc - Digital Image Processing DCT coding artifacts DCT coding with increasingly coarse quantization, block size 8x8 quantizer stepsize for AC coefficients: 25 quantizer stepsize for AC coefficients: 100 quantizer stepsize for AC coefficients: 200 7/15/2019 Duong Anh Duc - Digital Image Processing