Image Compression - PowerPoint PPT Presentation

1 / 29
About This Presentation
Title:

Image Compression

Description:

Energy compactness. but. KLT is signal dependent, complexity ... Data decorrelation and energy compactness. Quantization (lossy operation) Statistical encoding ... – PowerPoint PPT presentation

Number of Views:79
Avg rating:3.0/5.0
Slides: 30
Provided by: Jus6
Category:

less

Transcript and Presenter's Notes

Title: Image Compression


1
DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF
JOENSUU JOENSUU, FINLAND
  • Image Compression
  • Lecture 15
  • Transform Coding KLT, DCT
  • Alexander Kolesnikov

2
Transformation
  • The main goal of transformation is decorrelation
    of data.

C
X
Q(Y)
Y
Transformation
Quantization
Encoding
Model
3
Correlation matrix
  • Correlation matrix Rx

i
j
where E? is mathematical expectance (average
value)
is mean value (average) of the signal x
is variance of the input signal x
4
Karhunen-Loeve Transform (KLT)
  • Find eigenvectors and eigenvalues ?j for
  • correlation matrix R
  • Construct orthonormal basis with transform
    matrix T
  • Transform x into new basis

5
Independence of KLT coefficients
  • Correlation matrix for y

KLT coefficients y are decorrelated!
6
KLT Example for N2
2. Find eigenvectors
1. Find eigenvalues
7
KLT Example for N2
3. Normalization
8
KLT Example for N2
4. Check orthogonality
9
KLT Example for N2
5. Basis
10
KLT
  • KLT is rotation is signal space
  • Other names of KLT
  • Hotelling Transform
  • Principal Component Transform

11
KLT is optimal, but...
  • Decorrelation of data ? redundancy reduction
  • Energy compactness
  • but
  • KLT is signal dependent, complexity of basis
    calculation
  • O(N4)
  • The basis has to be sent to decoder

Lets introduce a model!
12
1st order Markov process
  • Image as 1st-order Markov process
  • xn?xn-1 ?n, where ?n is (white) noise
  • Correlation matrix Rx

13
Correlation function
14
KLT Example N2
15
KLT Example N8
T,Leig(Rx) for k1N subplot(2,4,k)
stem(T(,1N-k)) axis(0 N1 -0.8 0.8
) end
16
KLT? DFT ? DCT
  • Discrete Fourier Transform (DFT) is asimptotics
    of KLT
  • for the model. In other words, the KLT is
    spectral
  • decomposition of image data!
  • KLT ?DFT
  • Why Discrete Cosine Transform (DCT) is better
    than DFT?
  • DFT?DCT
  • What about Discrete Sine Transform (DST)?

17
KLT DCT N8, k0..3
KLT
DCT
18
KLT DCT N8, k4..7
KLT
DCT
19
1-D DCT N8
20
1-D DCT
  • Complexity O(N2)?
  • Fast algorithm O(N log2N)

21
Inverse 1-D DCT
22
2-D DCT
  • The 2-D DCT is performed as two sequential 1-D
    DCTs
  • Complexity of DCT is O(N logN) instead of O(N4)

Image
x 1-D DCT
y 1-D DCT
2-D DCT
23
2-D DCT N4
2-D DCT basis functions
24
Zig-zag DCT coefficients ordering
25
Where is compression?
  • DCT is reversible transformation
  • YTX ? XT-1Y
  • Where is compression?
  • Data decorrelation and energy compactness
  • ? Quantization (lossy operation)
  • ? Statistical encoding

26
1st DCT coefficient distribution
27
2nd DCT coefficient distribution
28
3rd DCT coefficient distribution
29
Example
Write a Comment
User Comments (0)
About PowerShow.com