Docsity

Lossy Compression Algorithms - Lecture Slides | ECE 160, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Lossy Compression Algorithms - Lecture Slides | ECE 160 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

ECE

Lecture 8 1

ECE160 / CMPS

Multimedia

Lecture 8: Spring 2008

Lossy Compression Algorithms

ECE

Lecture 8 2

Vector Quantization (VQ)

  • According to Shannon's original work on

information theory, any compression system

performs better if it operates on vectors or

groups of samples rather than individual

symbols or samples.

  • Form vectors of input samples by simply

concatenating a number of consecutive

samples into a single vector.

  • Instead of single reconstruction values as in

scalar quantization, in VQ code vectors with

n components are used. A collection of these

code vectors form the codebook.

ECE

Lecture 8 4

Transform Coding

The rationale behind transform coding :

  • If Y is the result of a linear transform T of the input vector

X in such a way that the components of Y are much less

correlated, then Y can be coded more efficiently than X.

  • If most information is accurately described by the first few

components of a transformed vector, then the remaining

components can be coarsely quantized, or even set to

zero, with little signal distortion.

  • Discrete Cosine Transform (DCT) will be studied first.
  • In addition, we will examine the Karhunen-Loeve Transform (KLT)
which optimally decorrelates the components of the input X.
ECE

Lecture 8 5

Spatial Frequency and DCT

  • Spatial frequency indicates how many times

pixel values change across an image block.

  • The DCT formalizes this notion with a measure

of how much the image contents change in

correspondence to the number of cycles of a

cosine wave per block.

  • The role of the DCT is to decompose the original

signal into its DC and AC components; the role

of the IDCT is to reconstruct (re-compose) the

signal.

ECE

Lecture 8 7 1D Discrete Cosine Transform (1D DCT) with inverse

ECE

Lecture 8 8 1D Discrete Cosine Transform (1D DCT)

ECE

Lecture 8 10 1D Discrete Cosine Transform (1D DCT)

ECE

Lecture 8 11 1D Discrete Cosine Transform (1D DCT)

ECE

Lecture 8 13 2D Discrete Cosine Transform (2D DCT)

ECE

Lecture 8 14 Karhunen-Loeve Transform (KLT)

  • The Karhunen-Loeve transform is a reversible

linear transform that exploits the statistical

properties of the vector representation.

  • It optimally decorrelates the input signal.
  • To understand the optimality of the KLT,

consider the autocorrelation matrix RX of the

input vector X defined as:

ECE

Lecture 8 16

KLT Example

  • The eigenvalues of R X are λ 1 = 6_._ 1963, λ 2 = 0_._ 2147, and λ 3 = 0_._ 0264. The corresponding eigenvectors are:
  • The KLT is given by the matrix
ECE

Lecture 8 17

KLT Example

  • Subtracting the mean vector from each input vector and

apply the KLT

  • Since the rows of T are orthonormal vectors, the inverse

transform is just the transpose: T − 1 = T T , and

x = T T y + m x

  • In general, after the KLT most of the “energy" of the

transform coefficients are concentrated within the first

few components. This is the “energy compaction"

property of the KLT.

ECE

Lecture 8 19 The Discrete Wavelet Transform

  • Discrete wavelets are formed from a mother wavelet,

with scale and shift in discrete steps.

  • The DWT makes the connection between wavelets in the

continuous time domain and “filter banks" in the discrete

time domain in a multiresolution analysis framework.

  • It is possible to show that the dilated and translated

family of wavelets

form an orthonormal basis of L 2( R ).

ECE

Lecture 8 20 Multiresolution Analysis in the Wavelet Domain

  • Multiresolution analysis provides the tool to adapt signal

resolution to only relevant details for a particular task.

  • The approximation component is then recursively

decomposed into approximation and detail at

successively coarser scales.

  • Wavelet functions Ρ( t ) are used to characterize detail

information. The averaging (approximation) information

is formally determined by a kind of dual to the mother

wavelet, called the “scaling function" φ( t ).

  • Wavelets are set up such that the approximation at

resolution 2

−j

contains all the necessary information to

compute an approximation at coarser resolution 2

− ( j +1)