Multimedia Data Compression

Slides:



Advertisements
Similar presentations
Effective of Some Mathematical Functions to Image Compression
Advertisements

Lossy Compression Algorithms
1 Image Transcoding in the block DCT Space Jayanta Mukhopadhyay Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur,
School of Computing Science Simon Fraser University
CSE 589 Applied Algorithms Spring 1999 Image Compression Vector Quantization Nearest Neighbor Search.
Lecture05 Transform Coding.
Wavelet Transform A very brief look.
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Wavelet Transform. What Are Wavelets? In general, a family of representations using: hierarchical (nested) basis functions finite (“compact”) support.
SWE 423: Multimedia Systems Chapter 7: Data Compression (3)
JPEG Still Image Data Compression Standard
Introduction to Wavelets
1 Computer Science 631 Lecture 4: Wavelets Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 project
Fundamentals of Multimedia Chapter 8 Lossy Compression Algorithms (Wavelet) Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Introduction to Wavelets -part 2
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
SWE 423: Multimedia Systems Chapter 7: Data Compression (5)
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
ENG4BF3 Medical Image Processing
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
1 Section 3. Image Compression Xudong Ni Group Member: Wei Yan,Li Yang,Xudong Ni Computer Science Florida International University.
Klara Nahrstedt Spring 2011
1 Multimedia Compression Algorithms Wen-Shyang Hwang KUAS EE.
CMPT 365 Multimedia Systems
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 final project
Indiana University Purdue University Fort Wayne Hongli Luo
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
DCT.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Wavelets and Multiresolution Processing (Wavelet Transforms)
CS654: Digital Image Analysis
JPEG - JPEG2000 Isabelle Marque JPEGJPEG2000. JPEG Joint Photographic Experts Group Committe created in 1986 by: International Organization for Standardization.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
Wavelet Transform Yuan F. Zheng Dept. of Electrical Engineering The Ohio State University DAGSI Lecture Note.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver compression.
3-D WAVELET BASED VIDEO CODER By Nazia Assad Vyshali S.Kumar Supervisor Dr. Rajeev Srivastava.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Fourier Transform J.B. Fourier Image Enhancement in the Frequency Domain 1-D Image Enhancement in the Frequency Domain 1-D.
Chapter 13 Discrete Image Transforms
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Entropy vs. Average Code-length Important application of Shannon’s entropy measure is in finding efficient (~ short average length) code words The measure.
Chapter 8 Lossy Compression Algorithms
Image Processing Architecture, © Oleh TretiakPage 1Lecture 5 ECEC 453 Image Processing Architecture Lecture 5, 1/22/2004 Rate-Distortion Theory,
Chapter 8 Lossy Compression Algorithms
Chapter 8 Lossy Compression Algorithms
Wavelet Transform Advanced Digital Signal Processing Lecture 12
JPEG Compression What is JPEG? Motivation
Chapter 9 Image Compression Standards
The Johns Hopkins University
Analog to digital conversion
Digital Image Processing Lecture 21: Lossy Compression
DCT – Wavelet – Filter Bank
Wavelets : Introduction and Examples
The Story of Wavelets Theory and Engineering Applications
CSI-447: Multimedia Systems
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
Scalar Quantization – Mathematical Model
CMPT 365 Multimedia Systems
Presenter by : Mourad RAHALI
Image Transforms for Robust Coding
The Story of Wavelets Theory and Engineering Applications
JPEG Still Image Data Compression Standard
Image Coding and Compression
Presentation transcript:

Multimedia Data Compression Part II Chapter 8 Lossy Compression Algorithms 1 Li & Drew

Chapter 8 Lossy Compression Algorithms 8.1 Introduction 8.2 Distortion Measures 8.3 The Rate-Distortion Theory 8.4 Quantization 8.5 Transform Coding 8.6 Wavelet-Based Coding

8.1 Introduction • Lossless compression algorithms do not deliver compression ratios that are high enough. Hence, most multimedia compression algorithms are lossy. • What is lossy compression? – The compressed data is not the same as the original data, but a close approximation of the original image perceptually. – Yields a much higher compression ratio than that of lossless compression. 3 Li & Drew

8.2 Distortion Measures A distortion measure is a mathematical quantity that specifies how close an approximation is to its original, using some distortion criteria. The three most commonly used distortion measures in image compression are: – mean square error (MSE) σ2, (8.1) where xn, yn, and N are the input data sequence, reconstructed data sequence, and length of the data sequence respectively. – signal to noise ratio (SNR), in decibel units (dB), (8.2) where is the average square value of the original data sequence and is the MSE. – peak signal to noise ratio (PSNR), (8.3) 4 Li & Drew

8.3 The Rate-Distortion Theory Provides a framework for the study of tradeoffs between Rate and Distortion. Rate is: the average number of bits required to represent each source symbol. From figure: the minimum possible rate at D=0, no loss. The distortion corresponding to a rate R(D)=0 is the maximum amount of distortion incurred when “nothing” is coded. 5 Li & Drew

8.4 Quantization • Reduce the number of distinct output values to a much smaller set. • Main source of the “loss” in lossy compression. • Three different forms of quantization. – Uniform: midrise and midtread quantizers. – Nonuniform: companded quantizer. – Vector Quantization. 6 Li & Drew

8.5 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. • Transformation to the frequency domain via Discrete Cosine Transform (DCT), Wavelet Transform (WT) and Fourier Transform (FT). 7 Li & Drew

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. 8 Li & Drew

Fig. 8.9: Graphical Illustration of 8 × 8 2D DCT basis. Li & Drew

8.6 Wavelet-Based Coding • The objective of the wavelet transform is to decompose the input signal into components that are easier to deal with, have special interpretations, or have some components that can be thresholded away, for compression purposes. • We want to be able to at least approximately reconstruct the original signal given these components. • The basis functions of the wavelet transform are localized in both time and frequency. • There are two types of wavelet transforms: the continuous wavelet transform (CWT) and the discrete wavelet transform (DWT). 10 Li & Drew

Wavelet Transform Example Suppose we are given the following input sequence. {xn,i} = {10, 13, 25, 26, 29, 21, 7, 15} Consider the transform that replaces the original sequence with its pairwise average xn−1,i and difference dn−1,i defined as follows: The averages and differences are applied only on consecutive pairs of input sequences whose first element has an even index. Therefore, the number of elements in each set {xn−1,i} and {dn−1,i} is exactly half of the number of elements in the original sequence. Li & Drew

• Form a new sequence having length equal to that of the original sequence by concatenating the two sequences {xn−1,i} and {dn−1,i}. The resulting sequence is {xn−1,i, dn−1,i} = {11.5, 25.5, 25, 11,−1.5,−0.5, 4,−4} • This sequence has exactly the same number of elements as the input sequence — the transform did not increase the amount of data. • Since the first half of the above sequence contain averages from the original sequence, we can view it as a coarser approximation to the original signal. The second half of this sequence can be viewed as the details or approximation errors of the first half. Li & Drew

• It is easily verified that the original sequence can be reconstructed from the transformed sequence using the relations xn, 2i = xn−1, i + dn−1, i xn, 2i+1 = xn−1, i − dn−1, i • This transform is the discrete Haar wavelet transform. Fig. 8.12: Haar Transform: (a) scaling function, (b) wavelet function. Li & Drew

2D Wavelet Transform • For an N by N input image, the two-dimensional DWT proceeds as follows: – Convolve each row of the image with low-pas and high-pass filters, discard the odd numbered columns of the resulting arrays, and concatenate them to form a transformed row. – After all rows have been transformed, convolve each column of the result with low-pass and high-pass filters. Again discard the odd numbered rows and concatenate the result. • After the above two steps, one stage of the DWT is complete. The transformed image now contains four subbands LL, HL, LH, and HH, standing for low-low, high-low, etc. • The LL subband can be further decomposed to yield yet another level of decomposition. This process can be continued until the desired number of decomposition levels is reached. 14 Li & Drew

Fig. 8.19: The two-dimensional discrete wavelet transform (a) One level transform, (b) two level transform. 15 Li & Drew

2D Wavelet Transform Example 16 Li & Drew