Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter 8 8.1 Introduction Lossless compression algorithms do not deliver compression.

Slides:



Advertisements
Similar presentations
Multimedia Data Compression
Advertisements

School of Computing Science Simon Fraser University
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
CSE 589 Applied Algorithms Spring 1999 Image Compression Vector Quantization Nearest Neighbor Search.
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
New Image Encryption and Compression Method Based on Independent Component Analysis.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Spatial and Temporal Data Mining
CSc 461/561 Multimedia Systems Part B: 2. Lossy Compression
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
SWE 423: Multimedia Systems Chapter 7: Data Compression (3)
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
JPEG Still Image Data Compression Standard
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms 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.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
SWE 423: Multimedia Systems Chapter 7: Data Compression (5)
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
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
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Multimedia Data DCT Image Compression
Indiana University Purdue University Fort Wayne Hongli Luo
Directional DCT Presented by, -Shreyanka Subbarayappa, Sadaf Ahamed, Tejas Sathe, Priyadarshini Anjanappa K. R. RAO 1.
Understanding JPEG MIT-CETI Xi’an ‘99 Lecture 10 Ben Walter, Lan Chen, Wei Hu.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Chapter 9 Image Compression Standards 9.1 The JPEG Standard 9.2 The JPEG2000 Standard 9.3 The JPEG-LS Standard 9.5 Further Exploration Li & Drew1.
Compression There is need for compression: bandwidth constraints of multimedia applications exceed the capability of communication channels Ex. QCIF bit.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014.
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.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
JPEG.
CS654: Digital Image Analysis
Block-based coding Multimedia Systems and Standards S2 IF Telkom University.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Chapter 13 Discrete Image Transforms
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
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
JPEG Compression What is JPEG? Motivation
Chapter 9 Image Compression Standards
The Johns Hopkins University
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
Digital Image Processing Lecture 21: Lossy Compression
Discrete Cosine Transform
CSI-447: Multimedia Systems
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
Scalar Quantization – Mathematical Model
CMPT 365 Multimedia Systems
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
JPEG Pasi Fränti
JPEG Still Image Data Compression Standard
Image Compression Techniques
1-D DISCRETE COSINE TRANSFORM DCT
Image Coding and Compression
Presentation transcript:

Chapter 8 Lossy Compression Algorithms

Fundamentals of Multimedia, Chapter 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 it. – Yields a much higher compression ratio than that of lossless compression. Li & Drew2

Fundamentals of Multimedia, Chapter Distortion Measures The three most commonly used distortion measures in image compression are: – mean square error (MSE) σ 2, (8.1) where x n, y n, 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) Li & Drew3

Fundamentals of Multimedia, Chapter Original Image

Fundamentals of Multimedia, Chapter The Rate-Distortion Theory Provides a framework for the study of tradeoffs between Rate and Distortion. Rate: Average number of bits required to represent each symbol. Fig. 8.1: Typical Rate Distortion Function. Li & Drew5

Fundamentals of Multimedia, Chapter Quantization Reduce the number of distinct output values to a much smaller set. It is the main source of the “loss” in lossy compression. Three different forms of quantization: Uniform Quantization. Nonuniform Quantization. Vector Quantization. Li & Drew6

Fundamentals of Multimedia, Chapter Transform Coding: DCT 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. Li & Drew7

Fundamentals of Multimedia, Chapter 8 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. Li & Drew8

Fundamentals of Multimedia, Chapter 8 Definition of DCT: Given an input function f ( i, j ) over two integer variables i and j (a piece of an image), the 2D DCT transforms it into a new function F ( u, v ), with integer u and v running over the same range as i and j. The general definition of the transform is: (8.15) where i, u = 0, 1,..., M − 1; j, v = 0, 1,..., N − 1; and the constants C ( u ) and C ( v ) are determined by (8.16) Li & Drew9

Fundamentals of Multimedia, Chapter 8 2D Discrete Cosine Transform (2D DCT): (8.17) where i, j, u, v = 0, 1,..., 7, and the constants C ( u ) and C ( v ) are determined by Eq. (8.5.16). 2D Inverse Discrete Cosine Transform (2D IDCT): The inverse function is almost the same, with the roles of f ( i, j ) and F ( u, v ) reversed, except that now C ( u ) C ( v ) must stand inside the sums: (8.18) where i, j, u, v = 0, 1,..., 7. Li & Drew10

Fundamentals of Multimedia, Chapter 8 1D Discrete Cosine Transform (1D DCT): (8.19) where i = 0, 1,..., 7, u = 0, 1,..., 7. 1D Inverse Discrete Cosine Transform (1D IDCT): (8.20) where i = 0, 1,..., 7, u = 0, 1,..., 7. Li & Drew11

Fundamentals of Multimedia, Chapter 8 Fig. 8.6: The 1D DCT basis functions. Li & Drew12

Fundamentals of Multimedia, Chapter 8 Fig. 8.6 (cont’d): The 1D DCT basis functions. Li & Drew13

Fundamentals of Multimedia, Chapter 8 Fig. 8.7: Examples of 1D Discrete Cosine Transform: (a) A DC signal f 1 ( i ), (b) An AC signal f 2 ( i ). Li & Drew14 (a) (b)

Fundamentals of Multimedia, Chapter 8 Fig. 8.7 (cont’d): Examples of 1D Discrete Cosine Transform: (c) f 3 ( i ) = f 1 ( i )+ f 2 ( i ), and (d) an arbitrary signal f ( i ). Li & Drew15 (c) (d)

Fundamentals of Multimedia, Chapter 8 Fig. 8.8 An example of 1D IDCT. Li & Drew16

Fundamentals of Multimedia, Chapter 8 Fig. 8.8 (cont’d): An example of 1D IDCT. Li & Drew17

Fundamentals of Multimedia, Chapter 8 The DCT is a linear transform: In general, a transform T (or function) is linear, iff (8.21) where α and β are constants, p and q are any functions, variables or constants. From the definition in Eq or 8.19, this property can readily be proven for the DCT because it uses only simple arithmetic operations. Li & Drew18

Fundamentals of Multimedia, Chapter 8 2D Separable Basis The 2D DCT can be separated into a sequence of two, 1D DCT steps: (8.24) (8.25) It is straightforward to see that this simple change saves many arithmetic steps. The number of iterations required is reduced from 8 × 8 to 8+8. Li & Drew19