Optimum LMSE Discrete Transform

Similar documents
Session 5. (1) Principal component analysis and Karhunen-Loève transformation

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Frequency Domain Filtering

Run-length & Entropy Coding. Redundancy Removal. Sampling. Quantization. Perform inverse operations at the receiver EEE

Olli Simula T / Chapter 1 3. Olli Simula T / Chapter 1 5

2D DSP Basics: 2D Systems

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

Frequency Response of FIR Filters

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

Chapter 2 Systems and Signals

The Discrete Fourier Transform

Machine Learning for Data Science (CS 4786)

Filter banks. Separately, the lowpass and highpass filters are not invertible. removes the highest frequency 1/ 2and

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

6.003 Homework #3 Solutions

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y

Course 4: Preparation for Calculus Unit 1: Families of Functions

Infinite Sequences and Series

Chapter 7: The z-transform. Chih-Wei Liu

Chapter Vectors

Principle Of Superposition

Sensitivity Analysis of Daubechies 4 Wavelet Coefficients for Reduction of Reconstructed Image Error

ADVANCED DIGITAL SIGNAL PROCESSING

Chimica Inorganica 3

EE / EEE SAMPLE STUDY MATERIAL. GATE, IES & PSUs Signal System. Electrical Engineering. Postal Correspondence Course

Chapter 7 z-transform

4.3 Growth Rates of Solutions to Recurrences

Machine Learning for Data Science (CS 4786)

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

FFTs in Graphics and Vision. The Fast Fourier Transform

Chapter 8. DFT : The Discrete Fourier Transform

FIR Filter Design: Part II

CHAPTER I: Vector Spaces

x[0] x[1] x[2] Figure 2.1 Graphical representation of a discrete-time signal.

Matrices and vectors

Linear time invariant systems

Web Appendix O - Derivations of the Properties of the z Transform

ELEG3503 Introduction to Digital Signal Processing

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

7. Modern Techniques. Data Encryption Standard (DES)

Module 5 EMBEDDED WAVELET CODING. Version 2 ECE IIT, Kharagpur

Classification of problem & problem solving strategies. classification of time complexities (linear, logarithmic etc)

Discrete-Time Signals and Systems. Signals and Systems. Digital Signals. Discrete-Time Signals. Operations on Sequences: Basic Operations

, then cv V. Differential Equations Elements of Lineaer Algebra Name: Consider the differential equation. and y2 cos( kx)

Practical Spectral Anaysis (continue) (from Boaz Porat s book) Frequency Measurement

The Discrete Fourier Transform

Signal Processing in Mechatronics

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

Lecture 14. Discrete Fourier Transforms (cont d) The Discrete Cosine Transform (DCT) (cont d)

Introduction to Signals and Systems, Part V: Lecture Summary

CEE 522 Autumn Uncertainty Concepts for Geotechnical Engineering

DISTRIBUTION LAW Okunev I.V.

Question1 Multiple choices (circle the most appropriate one):

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

Module 18 Discrete Time Signals and Z-Transforms Objective: Introduction : Description: Discrete Time Signal representation

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods

PAPER : IIT-JAM 2010

2 Geometric interpretation of complex numbers

CS284A: Representations and Algorithms in Molecular Biology

multiplies all measures of center and the standard deviation and range by k, while the variance is multiplied by k 2.

Matrix Algebra 2.2 THE INVERSE OF A MATRIX Pearson Education, Inc.

Finite-length Discrete Transforms. Chapter 5, Sections

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Digital Signal Processing, Fall 2006

Lesson 10: Limits and Continuity

TEACHER CERTIFICATION STUDY GUIDE

Time-Domain Representations of LTI Systems

A widely used display of protein shapes is based on the coordinates of the alpha carbons - - C α

Beurling Integers: Part 2

Chapter 4. Fourier Series

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Cov(aX, cy ) Var(X) Var(Y ) It is completely invariant to affine transformations: for any a, b, c, d R, ρ(ax + b, cy + d) = a.s. X i. as n.

Physics 324, Fall Dirac Notation. These notes were produced by David Kaplan for Phys. 324 in Autumn 2001.

Fortgeschrittene Datenstrukturen Vorlesung 11

Signal Processing in Mechatronics. Lecture 3, Convolution, Fourier Series and Fourier Transform

Analysis of Algorithms. Introduction. Contents

a for a 1 1 matrix. a b a b 2 2 matrix: We define det ad bc 3 3 matrix: We define a a a a a a a a a a a a a a a a a a

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

CALCULATION OF FIBONACCI VECTORS

Section 1.1. Calculus: Areas And Tangents. Difference Equations to Differential Equations

CHAPTER 5. Theory and Solution Using Matrix Techniques

Signals & Systems Chapter3

1 Last time: similar and diagonalizable matrices

FIR Filter Design: Part I

Review of Discrete-time Signals. ELEC 635 Prof. Siripong Potisuk

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

11 Correlation and Regression

Determinants of order 2 and 3 were defined in Chapter 2 by the formulae (5.1)

REVISION SHEET FP1 (MEI) ALGEBRA. Identities In mathematics, an identity is a statement which is true for all values of the variables it contains.

Review Problems 1. ICME and MS&E Refresher Course September 19, 2011 B = C = AB = A = A 2 = A 3... C 2 = C 3 = =

Exponential Moving Average Pieter P

Generalizing the DTFT. The z Transform. Complex Exponential Excitation. The Transfer Function. Systems Described by Difference Equations

DIGITAL FILTER ORDER REDUCTION

Solutions. Number of Problems: 4. None. Use only the prepared sheets for your solutions. Additional paper is available from the supervisors.

Lecture 7: Fourier Series and Complex Power Series

Probability, Expectation Value and Uncertainty

Lecture 8: Solving the Heat, Laplace and Wave equations using finite difference methods

Transcription:

Image Trasformatio Two-dimesioal image trasforms are extremely importat areas of study i image processig. The image output i the trasformed space may be aalyzed, iterpreted, ad further processed for implemetig diverse image processig tass. These trasformatios are widely used, sice by usig these trasformatios, it is possible to express a image as a combiatio of a set of basic sigals, ow as the basis fuctios. I case of Fourier trasform of a image these basis sigals are siusoidal sigals with differet periods which describe the spatial frequecies i a image. Thus such trasforms, such as the Fourier trasform, reveal spectral structures embedded i the image that may be used to characterize the image. The term Image trasform are usually refers to a class of uitary matrices used for represetig images. large class of image processig trasformatios is liear i ature; a output image is formed from liear combiatios of pixels of a iput image. Such trasforms iclude covolutios, correlatios, ad uitary trasforms. Liear trasforms have bee utilized to ehace images ad to extract various features from images. For example, the Fourier trasform is used i highpass ad lowpass filterig as well as i texture aalysis. Aother applicatio is image codig i which badwidth reductio is achieved by deletig low-magitude trasform coefficiets. The followig table illustrate the complexity of trasformatios Trasform Processig ad Ecodig TYPE OPERATIOS COMMETS Karhue Loeve 4 Optimum LMSE Discrete Trasform Discrete Fourier HADAMARD log log Asymptotic to K.L.Trasform Biary Basis Matrices Discrete Cosie More Complex Useful i sca directio i real time, Better tha Fourier ad Hadamard Slat Trasform Complex Suited for vertical ecodig, Better tha Fourier ad Hadamard HAAR Trasform Geeralized Differetial Ecodig Simply Implemeted Fourier Trasform Fourier trasform is oe of the most importat tools which have bee extesively used ot oly for uderstadig the ature of a image ad its formatio but also for processig the image. Usig Fourier trasform, it has bee possible to aalyze a image as a set of spatial siusoids i various directios, each siusoid havig a precise frequecy.

Oe-Dimesioal Fourier Trasform The oe-dimesioal cotiuous Fourier trasform,(cft) of a cotiuous fuctio f(x) is Two-Dimesioal Fourier Trasform Extedig the cocept of oe-dimesioal Fourier trasform, the two-dimesioal Fourier trasform of a cotiuous fuctio f(x, y) is deoted by The variable i Eq. 4.6 idicates the frequecy,i.e., the umber of waves per uit legth i X directio, ad idicates the umber of waves alog the Y directio. The correspodig iverse two-dimesioal Fourier trasform is Discrete Fourier Trasform (DFT) Sice the sigal is discretized, the operatio of itegratio i cotiuous Fourier trusfom (CFT) is replaced by summatio operatios i DFT. We preset the oedimesioal DFT ad also the two-dimesioal DFT i the followig subsectios. Oe-Dimesioal DFT The oe-dimesioal discrete Fourier trasform of a fuctio f(x) of size with iteger idex x ruig from 0 to -, is represeted by

[error : replace y i summatio by x] The correspodig oe-dimesioal iverse DFT is [replace M by ] Two-Dimesioal DFT The two-dimesioal discrete Fourier trasform of a two-dimesioal sigal f ( x, y ) of dimesio M x with iteger idices x ad y ruig from 0 to M - ad 0 to -, is represeted by The equivalet two-dimesioal iverse DFT is Trasformatio Kerels As we have already oted the geeral forward ad iverse Fourier trasformatio ca be expressed as I the above equatios g(x, y, u, v) is ow as forward trasformatio erel ad h(x, y, u, v) is the iverse trasformatio erel. Here u ad v assume values i the rage (0,,..., - ). As ca be further observed, these erels are depedet oly 3

o the spatial positios ad frequecies alog X ad Y directios, ad are idepedet of either f ( x,y ) or F(u,w ). If the erel g ( x, y, u, v ) = g(x,u)g(y,v), we say that the erel is separable. If i additio the fuctioal forms of g ad g are idetical, the the erel is said to be symmetric. It easy to show that the erel g(x, y, u, v) is separable ad symmetric sice Properties - Traslatio: The traslatio of a Fourier trasform pair is The above implicatio idicates the correspodece betwee a two dimesioal image fuctio ad its Fourier trasform. - Rotatio: Assumig that the fuctio f ( x,y ) udergoes a rotatio of, the correspodig fuctio f (x,y ) i polar coordiates will the be represeted as f ( r, ), where x= r cosc ad y = r si. The correspodig DFT F(u,w) i polar coordiates will be represeted as The above implies that if f ( x,y ) is rotated by, the F ( u,w ) will be rotated by the same agle ad hece we ca imply that correspods to i the DFT domai ad vice versa. 3- Separability : The separability property of a two-dimesioal trasform ad its iverse esures that such computatios ca be performed by decomposig the twodimesioal trasforms ito two oe-dimesioal trasforms. From Eqs. 4.3 ad 4.4 describig the DFT ad iverse DFT of a two-dimesioal fuctio f ( x,y ), we ca express them i separable form as follows. 4- Distributive property: The DFT of sum of two fuctios f( x,y ) ad f ( x, y ) is idetical to the sum of the DFT of these two fuctios, i.e., 4

5- Scalig property: The DFT of a fuctio f ( x, y ) multiplied by a scalar() is idetical to the multiplicatio of the scalar with the DFT of the fuctio f(x,y), i.e., 6- Covolutio: The DFT of covolutio of two fuctios is equal to the product of the DFT of these two fuctios, i.e., 7- Correlatio: The correlatio betwee two fuctios f(x,y) ad f ( x,y) i cotiuous domai is deoted as whereas the correlatio i the discrete domai is deoted as 8- Periodicity: The DFT of a two-dimesioal fuctio f ( x, y ) ad its iverse are both periodic with period, i.e., Fast Fourier Trasform The umber of complex multiplicatios ad additios to compute Eq. 4. for DFT is O(). However, we ca adopt a divide-ad- coquer approach to reduce the computatioal complexity of the algorithm to O( log ). This algorithm is popularly ow as the Fast Fourier Trasform (FFT). Here we preset a geeral idea of the divide-ad-coquer approach toward implemetatio of the FFT. The geeral priciples is based o successive divisio method usig divide-ad-coquer approach as explaied below. As show i Eq. 4., the oe-dimesioal DFT of a oedimesioal 5

sigal f(x) is computed The Discrete Cosie Trasform ( DCT ) This importat trasform (DCT for short) has origiated by. The DCT i oe dimesio is give by The iput is a set of data values pt (pixels, audio samples, or other data), ad the output is a set of DCT trasform coefficiets (or weights) Gf. The first coefficiet G0 is called the DC Coefficiet, ad the rest are referred to as the AC coefficiets. otice that the coefficiets are real umbers eve if the iput data cosists of itegers. Similarly, the coefficiets may be positive or egative eve if the iput data cosists of oegative umbers oly. This computatio is The IDCT i oe dimesio is give by the most of the trasform coefficiets produced by the DCT are zeros or small umbers, ad oly a few are large (ormally the first oes). We will see that the early coefficiets cotai the importat (low-frequecy) image iformatio ad the later coefficiets cotai the less-importat (high-frequecy) image iformatio. Compressig data with the DCT is therefore doe by quatizig the coefficiets. Experiece idicates that = 8 is a good value, ad most data compressio methods that employ the DCT use this value of. The followig example illustrates the differece i performace betwee the DCT ad the DFT. We start with the simple, highly correlated sequece of eight umbers (8, 6, 4, 3, 40, 48, 56, 64). It is displayed graphically i followig Figure Applyig the DCT to it yields (00, 5, 0, 5, 0,, 0, 0.4). Whe this is quatized to 6

(00, 5, 0, 5, 0, 0, 0, 0) ad trasformed bac, it produces (8,5,4, 3, 40, 48,57, 63), a sequece almost idetical to the origial iput. Applyig the DFT to the same iput, o the other had, yields (36, 0, 0, 6, 6, 4, 4, 4). Whe this is quatized to (36, 0, 0, 6, 0, 0, 0, 0) ad is trasformed bac, it produces (4,, 0, 3,40,5, 59, 48). This output is show i the followig Figure, ad it illustrates the tedecy of the Fourier Trasform to produce a periodic result. The DCT i two dimesio is give by for 0 i ad 0 j m ad for Ci ad Cj defied by Equatio (4.3). The first coefficiet G00 is agai termed the DC coefficiet, ad the remaiig coefficiets are called the AC coefficiets., The IDCT i two dimesio is give by We illustrate the performace of the DCT i two dimesios by applyig it to two blocs of 8 8 values. The first bloc (Table 4.3a) has highly correlated iteger values i the rage [8, ], ad the secod bloc has radom values i the same rage(table 4.4) The first bloc results i a large DC coefficiet, followed by small AC coefficiets (icludig 0 zeros, Table 4.3b, where egative umbers are uderlied). Whe the coefficiets are quatized (Table 4.3c), 7

The result, show i Table 4.3d, is very similar to the origial values. I cotrast, the coefficiets for the secod bloc (Table 4.4b) iclude just oe zero. Whe quatized (Table 4.4c) ad trasformed bac, may of the 64 results are very differet from the origial values (Table 4.4d). The ext example illustrates the differece i the performace of the DCT whe applied to a cotiuous-toe image ad to a discrete-toe image. We start with the highly correlated patter of Table 4.5. 8

9 This is a idealized example of a cotiuous-toe image, sice adjacet pixels differ by a costat amout except the pixel (uderlied) at row 7, colum 7. The 64 DCT coefficiets of this patter are listed i Table 4.6. It is clear that there are oly a few domiat coefficiets. Table 4.7 lists the coefficiets after they have bee coarsely quatized, so that oly four ozero coefficiets remai! The results of performig the IDCT o these quatized coefficiets are show i Table 4.8. It is obvious that the four ozero coefficiets have recostructed the origial patter to a high degree. The oly visible differece is i row 7, colum 7, which has chaged from to 7.55 (mared i both figures). [ page 5-54 of ail] properties of dct بولطم Sie trasform The third equatio represet the two dimesio (,) 0.5 provided that KLT, DST iscloseto the fast algorithm, 0, si, 0, si 0, si 0 0 S S S S v u u v T

Hartley Trasform The discrete two-dimesioal Hartley trasform is defied by the trasform pair Hadamard Trasform [Ray] The basis vector of the trasform tae oly the biary value +,- The symmetric WHT for =,, 4 ad 8 are show i Eqs. 4.6-4.9 respectively: H = [I] (4.6) 0

Haar Trasform [scott page 5-30] KARHAUE-LOEVE TRASFORM OR PRICIPAL COMPOET AALYSIS [ray] Karhaue.-Loeve Trasform, or Pricipal Compoet Aalysis (PCA) has bee a popular techique for may image processig ad patter recogitio applicatios. This trasform which is also ow as Hotellig Trasform is based o the cocepts of statistical properties of image pixels or patter features Pricipal compoet aalysis (PCA) forms the basis of the Karhue-Loeve (KL) trasform for compact represetatio of data. The KL trasform ad the theory behid the pricipal compoet aalysis are of

fudametal importace i sigal ad image processig. The priciple has also foud its place i data miig for reductio of large-dimesioal datasets. It has bee successfully applied to text aalysis ad retrieval for text miig as well, Before describig the PCA, we would briefly preset the cocepts of covariace matrix. Covariace Matrix I practical patter recogitio problems there are usually more tha oe feature. Durig the process of statistical aalysis of these data, we have to fid out whether these features are idepedet of oe aother. Otherwise there exists a relatioship betwee each pair of features. For example, while extractig the features of huma face, oe may choose two features such as () X to deote the distace betwee the ceters of the two irises, ad () Y to deote the distace betwee the ceters of the left ad right eyebrows. From a large set of huma faces, we ca determie the mea ad the stadard deviatio of the above two features. The stadard deviatio for each of the above two dimesios of the face data set may be computed idepedetly of each other. To uderstad whether there exists ay relatioship betwee these two features, we have t o compute how much the first feature X of each of the patters i our data set varies from the mea of the secod feature Y. This measure, which is computed similar to variace, is always measured betwee two features. The covariace is computed as follows: the covariace is measured betwee each pair of features. Eigevectors ad Eigevalues Before we discuss pricipal compoet aalysis, we will briefly explai the cocept of eigevectors ad eigevalues of a matrix. Let us assume that we have a square matrix A of dimesio x, which whe multiplied by a vector X of dimesio x yields aother vector Y of dimesio x, which is essetially the same as the origial vector X that was chose iitially. Such a vector X is called a eigevector which trasforms a square matrix A ito a vector, which is either the same vector X or a multiple of X. Every eigevector is associated with a correspodig eigevalue. The cocept of a eigevalue is that of a scale which whe multiplied by the eigevector yields the same scaled vector i the same directio. Pricipal Compoet Aalysis While computig the pricipal compoet aalysis, we represet a x image as a oe-dimesioal vector of * elemets, by placig the rows of the image oe after aother. The we compute the covariace matrix of the etire data set. ext we compute the eigevalues of this covariace matrix. The eigevectors correspodig

to the most sigificat eigevalues will yield the pricipal compoets. To get the origial data bac we have to cosider all the eigevectors i our trasformatio. If we discard some of the less sigificat eigevectors i the fial trasformatio, the the retrieved data will lose some iformatio. However, if we choose all the eigevectors, we ca retrieve the origial data. The Slat Trasform [Ail page 6 6] The x slat trasform matrices are defied by the recursio. Table 5.3 Summary of image trasform [Ail page 79] 3