Waveletbased Coding And its application in JPEG 2000
Wavelet-based Coding And its application in JPEG 2000 Monia Ghobadi CSC 561 final project monia@cs. uvic. ca
Introduction n n Signal decomposition Fourier Transform n n Frequency domain Temporal domain Time information?
What is wavelet transform? n n n Wavelet transform decomposes a signal into a set of basis functions (wavelets) Wavelets are obtained from a single prototype wavelet Ψ(t) called mother wavelet by dilations and shifting: where a is the scaling parameter and b is the shifting parameter
What are wavelets n Wavelets are functions defined over a finite interval and having an average value of zero. Haar wavelet
Haar Wavelet Transform n Example: Haar Wavelet
Haar Wavelet Transform 1. Find the average of each pair of samples. 2. Find the difference between the average and the samples. 3. Fill the first half of the array with averages. 4. Normalize 5. Fill the second half of the array with differences. 6. Repeat the process on the first half of the array. 1 3 5 7 1. Iteration 2 6 -1 -1 2. Iteration 4 -2 -1 -1 Signal 1. 2. 3. 4. 5. 6. 1+3 / 2 = 2 1 - 2 = -1 Insert Normalize Insert Repeat
Haar Wavelet Transform Signal 1 3 5 7 Signal [1 3 5 7 ] 2. Iteration 4 -2 -1 -1 Signal recreated from 2 coefficients [2 2 6 6 ]
Haar Basis Lenna Haar Basis
2 D Mexican Hat wavelet Time domain Frequency domain
2 D Mexican Hat wavelet (Movie) low frequency high frequency <Time Domain Wavelet> <Fourier Domain Wavelet>
Scale = 38
Scale =2
Scale =1
Wavelet Transform n n Continuous Wavelet Transform (CWT) Discrete Wavelet Transform (DWT)
Continuous Wavelet Transform n n continuous wavelet transform (CWT) of 1 D signal is defined as the a, b is computed from the mother wavelet by translation and dilation
Discrete Wavelet Transform n n n CWT cannot be directly applied to analyze discrete signals CWT equation can be discretised by restraining a and b to a discrete lattice transform should be non-redundant, complete and constitute multiresolution representation of the discrete signal
Discrete Wavelet Transform n Discrete wavelets n In reality, we often choose
Discrete Wavelet Transform In the discrete signal case we compute the Discrete Wavelet Transform by successive low pass and high pass filtering of the discrete time -domain signal. This is called the Mallat algorithm or Mallat-tree decomposition.
Pyramidal Wavelet Decomposition
Wavelet Decomposition The decomposition process can be iterated, with successive approximations being decomposed in turn, so that one signal is broken down into many lowerresolution components. This is called the wavelet decomposition tree.
Lenna Image Source: http: //sipi. usc. edu/database/
Lenna DWT
Lenna DWT DC Level Shifted +70
Restored Image Can you tell which is the original and which is the restored image after removal of the lower right?
DWT for Image Compression n Block Diagram 2 D Discrete Wavelet Transform Quantization Entropy Coding 2 D discrete wavelet transform (1 D DWT applied alternatively to vertical and horizontal direction line by line ) converts images into “sub-bands” Upper left is the DC coefficient Lower right are higher frequency sub-bands.
DWT for Image Compression n Image Decomposition n Scale 1 LL 1 HL 1 LH 1 HH 1 n 4 subbands: Each coeff. a 2*2 area in the original image Low frequencies: n High frequencies: n n
DWT for Image Compression n Image Decomposition n n • • • Scale 2 4 subbands: Each coeff. a 2*2 area in scale 1 image Low Frequency: High frequencies: LL 2 HL 1 LH 2 HH 2 LH 1 HH 1
DWT for Image Compression n Image Decomposition n n LL 3 HL 3 LH 3 HH 3 Parent Children Descendants: corresponding coeff. at finer scales Ancestors: corresponding coeff. at coarser scales HL 2 LH 2 HL 1 HH 2 LH 1 HH 1
DWT for Image Compression n Image Decomposition Feature 1: n n Energy distribution similar to other TC: Concentrated in low frequencies Feature 2: n n LL 3 HL 3 LH 3 HH 3 Spatial self-similarity across subbands LH 2 HL 1 HH 2 LH 1 HH 1 The scanning order of the subbands for encoding the significance map.
JPEG 2000 n JPEG 2000 (J 2 K) is an emerging standard for image compression n Achieves state-of-the-art low bit rate compression and has a rate distortion advantage over the original JPEG. Allows to extract various sub-images from a single compressed image codestream, the so called “Compress Once, Decompress Many Ways”. ISO/IEC JTC 29/WG 1 Security Working Setup in 2002
JPEG 2000 n n n Not only better efficiency, but also more functionality Superior low bit-rate performance Lossless and lossy compression Multiple resolution Range of interest(ROI)
JPEG 2000 n n n Can be both lossless and lossy Improves image quality Uses a layered file structure : n n n File structure flexibility: n n Progressive transmission Progressive rendering Could use for a variety of applications Many functionalities
Why another standard? Low bit-rate compression n Lossless and lossy compression n Large images n Single decompression architecture n Transmission in noisy environments n Computer generated imaginary n
“Compress Once, Decompress Many Ways” A Single Original Codestream By resolutions By layers Region of Interest
Components n n Each image is decomposed into one or more components, such as R, G, B. Denote components as Ci, i = 1, 2, …, n C.
JPEG 2000 Encoder Block Diagram n Key Technologies: n n Discrete Wavelet Transform (DWT) Embedded Block Coding with Optimized Truncation (EBCOT) transform quantize coding
Resolution & Resolution. Increments J 2 K uses 2 -D Discrete Wavelet Transformation (DWT) 1 -level DWT
Resolution and Resolution. Increments 1 -level DWT 2 -level DWT
Discrete Wavelet Transform LL 2 HL 2 LH 2 HH 2 LH 1 HL 1 HH 1
Layers & Layer-Increments L 0 {L 0, L 1} {L 0, L 1, L 2} All layerincrements
JPEG 2000 v. s. JPEG low bit-rate performance
JPEG 2 K - Quality Scalability Improve decoding quality as receiving more bits: n
Spatial Scalability Multi-resolution decoding from one bitstream: n
ROI (range of interest)
- Slides: 44