Title: Image Transforms for Robust Coding
1Image Transforms for Robust Coding
- Javier Pinilla-Dutoit
- Educational Technology Research Group
2Introduction
- The fundamental problem of communication is that
of reproducing at one point either exactly or
approximately a message selected at another
point. (Claude Shannon, 1948) - What information should be transmitted?
- How should it be transmitted?
3Communication System
4Source Coding
- Goals
- Reduction of redundancy
- Removal of irrelevancy (irreversible)
- Stages
- Transformation
- Quantization (lossy)
- Entropy coding
Image samples Transform coefficients Symbol
stream Bit stream
5Lossless and Lossy
- Lossless (21 to 81)
- Limited by the entropy of the message (Claude E.
Shannon) - Lossy (1001)
Entropy is a measure of information content the
more probable the message, the lower its
information content, the lower its entropy
6Transformation
- Example rotation of coordinate axis
- Improves statistical distribution of image
elements - Decomposition into components of differing
variance
7Transformations for Image Coding
- Block transforms (blocks in the spatial domain)
- Fixed size
- Quadtrees
- Sub-band decompositions (blocks in the frequency
domain) - Uniform
- Logarithm
- Pyramids
- Wavelet
- Wavelet packets
8Quantization
Four-level digital
Eight-level digital
representation
representation
Two-bit resolution
Three-bit resolution
Can be used to exploit features of the human
visual system
9Quantization (bit allocation)
- Example "rounding to the nearest integer"
- Non-uniform (variable bit allocation)
- Based on the statistics of the source (Laplacian
quantizer) - Based on the human visual system
(perceptually-tuned quantization)
10Entropy Coding
- Methods based on repeated characters run-length
encoding - The repeated character is replaced by the number
of occurrences and by the character itself - e.g. AAAABBBCCCCC (12 symbols) is coded as 4A3B5C
(6 symbols) 21 - Methods based on probability of occurrence
Huffman coding, arithmetic coding - Symbols that occur more often are assigned
shorter codes - e.g. natural languages a, is, the (shorter
words) are those with higher probability - Dictionary-based methods Lempel-Zip coding
- Words and phrases within a text stream are likely
to be repeated - e.g. acronyms The Lempel-Zip encoding methods
(LZ) are string-matching techniques. LZ were
invented in 1977 and 1978
11Fourier Analysis
12Fourier Transform Bases
13Fourier Transform
14Short-time Fourier Analysis
15Short-time Fourier Transform Bases
16Wavelet Transform Bases
17Time vs. Frequency
18Application Local Analysis
19Wavelet Transform
202-D Wavelet Transform
21Discrete Wavelet Transform and Filter Banks
22Haar Wavelet Compression
1
8 x
6 x
9 x
4 x
2 x
7 x
1 x
1 x
3 x
-1 x
-1 x
5 x
9
8
8
7
8
8
5
4
4
3
4
2
1
0
0
-1
Transformed
Original
Compressed
Reconstructed
23Cortex Transform(Watson, 1987)
- Radial and angular frequency bands
- Simulated response of neurons in the human visual
cortex - Invertible
24Modified Cortex Transform(Daly, 1993)
25Cortex Filters
26Cortex Layers
27Cortex Frequency Spectrum
28Assignment Haar Wavelet
- Consider the signal x(n)13, 11, -3, 7, 5, -13,
15, 9. - Apply the Haar decomposition to these
coefficients. The Haar transform is implemented
as a filter bank where the output of every
lowpass filter is yL (n) ½ x (n) ½ x (n1)
and the output of every highpass filter is yH (n)
½ x (n) ½ x (n1). After every filtered
operation, the signal is downsampled by a factor
of 2. - Extensions
- Reconstruct the original signal from the
transformed coefficients. - Make a drawing of the analysis and synthesis
filter banks. - Plot the original, transformed and reconstructed
signal and the Haar basis functions.
29Assignment Haar Wavelet