Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.

Slides:



Advertisements
Similar presentations
A Matlab Playground for JPEG Andy Pekarske Nikolay Kolev.
Advertisements

SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
JPEG.
SWE 423: Multimedia Systems Chapter 7: Data Compression (4)
Image (and Video) Coding and Processing Lecture: DCT Compression and JPEG Wade Trappe Again: Thanks to Min Wu for allowing me to borrow many of her slides.
CS :: Fall 2003 MPEG-1 Video (Part 1) Ketan Mayer-Patel.
JPEG Still Image Data Compression Standard
Hao Jiang Computer Science Department Sept. 27, 2007
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
CS430 © 2006 Ray S. Babcock Lossy Compression Examples JPEG MPEG JPEG MPEG.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
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.
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Still Image Conpression JPEG & JPEG2000 Yu-Wei Chang /18.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
JPEG C OMPRESSION A LGORITHM I N CUDA Group Members: Pranit Patel Manisha Tatikonda Jeff Wong Jarek Marczewski Date: April 14, 2009.
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
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.
JPEG Motivations: Motivations: 1.Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Klara Nahrstedt Spring 2011
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
Prof. Amr Goneid Department of Computer Science & Engineering
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Indiana University Purdue University Fort Wayne Hongli Luo
JPEG CIS 658 Fall 2005.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
Hardware/Software Codesign Case Study : JPEG Compression.
Digital Image Processing Image Compression
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
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.
An introduction to audio/video compression Dr. Malcolm Wilson.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014.
The JPEG Standard J. D. Huang Graduate Institute of Communication Engineering National Taiwan University, Taipei, Taiwan, ROC.
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.
JPEG (Joint Photographic Expert Group)
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
JPEG.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Introduction to JPEG m Akram Ben Ahmed
Image Processing Architecture, © Oleh TretiakPage 1Lecture 7 ECEC 453 Image Processing Architecture Lecture 8, February 5, 2004 JPEG: A Standard.
JPEG. Introduction JPEG (Joint Photographic Experts Group) Basic Concept Data compression is performed in the frequency domain. Low frequency components.
MPEG CODING PROCESS. Contents  What is MPEG Encoding?  Why MPEG Encoding?  Types of frames in MPEG 1  Layer of MPEG1 Video  MPEG 1 Intra frame Encoding.
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.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
JPEG Compression What is JPEG? Motivation
Chapter 9 Image Compression Standards
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
CMPT 365 Multimedia Systems
JPEG Still Image Data Compression Standard
The JPEG Standard.
Image Coding and Compression
Presentation transcript:

Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao

Department of Computer Engineering University of California at Santa Cruz JPEG Compression n JPEG is the image compression standard developed by the Joint Photographic Experts Group n JPEG was designed for natural image compression n It convert the original image into YIQ space and compress each channel as a separate gray image n The compression ratio and the quality of the decoded images is controlled by quality factor (1-100) Quality factor > 35 - no big difference Quality factor < 10 – significant difference

Department of Computer Engineering University of California at Santa Cruz Quality factor n Original Quality factor = 20 Quality factor = 75 Quality factor = 5

Department of Computer Engineering University of California at Santa Cruz JPEG Compression – Algorithm Overview n An input image is divided into 8x8 blocks. Each block is encoded based on DCT transform n DCT coefficients are quantized according to a quatization matrix n Entropy coding is used to encode positions and the magnitudes of the coefficients

Department of Computer Engineering University of California at Santa Cruz Color space conversion n Human visual system has less resolution in color than in intensity. As a result, the original color images are converted into intensity and color channels. One such transformation is RGB->YIQ

Department of Computer Engineering University of California at Santa Cruz JPEG – 8x8 DCT Transformation n After DCT compression, only a few DCT coefficients have large values in each 8x8 block n These coefficients are floating-point numbers

Department of Computer Engineering University of California at Santa Cruz Quantization of the DCT Coefficients n Each coefficients are converted into an integer number using quatization n The choices of quatization steps Large quantization step - Large rounding errors, smaller quantized values Small quatization step – Small rounding errors, large quantized coefficients The same quatization step for all coefficients ? – Human visual system is more sensitive to relative low frequency changes in images, which implies that for high frequency coefficients, larger quantization steps can be used without causing noticeable image distortion What does all this means ?

Department of Computer Engineering University of California at Santa Cruz JPEG Quantization Matrix n The low frequency coefficients (upper-left corner) have smaller quantization steps, therefore more accurately encoded

Department of Computer Engineering University of California at Santa Cruz JPEG Quantization Using the Quantization Matrix Before quantization After quantization After reconstruction

Department of Computer Engineering University of California at Santa Cruz Encoding n We need to compress the quantized coefficients n Lossless methods are used to Encode the position of non-zero coefficients Encode the magnitudes of these coefficients

Department of Computer Engineering University of California at Santa Cruz Encoding n Zig-Zag encoding of coefficient positions Non-zero coefficients and the number of 0’s in front of them are encoded along the zig-zag path

Department of Computer Engineering University of California at Santa Cruz Example n The following quantized coefficient matrix is represented as (30,0), (-7,1), (-12, 0), (-8, 0), (-1, 0), (1,1),(6,0),(-5,0),(-7,0),(-3,0), (1,1), (-1,3),(-3,1),(-4,0), (-1,0), (4,0), (3,0),(-3,11),(1,0), (-1,0),(end) n These pairs are encoded using a entropy coding method

Department of Computer Engineering University of California at Santa Cruz JPEG bit stream n

Department of Computer Engineering University of California at Santa Cruz JPEG Bitstream n Terminology Frame – image Block – 8x8 image block Segment – a group of blocks n Frame header Sample precision (width, height) of image number of components unique ID (for each component) horizontal/vertical sampling factors (for each component) quantization table to use (for each component)

Department of Computer Engineering University of California at Santa Cruz JPEG Bitstream n Scan header Number of components in scan component ID (for each component) Huffman table for each component (for each component) n Misc. (can occur between headers) Quantization tables Huffman Tables Arithmetic Coding Tables Comments Application Data

Department of Computer Engineering University of California at Santa Cruz Various JPEG modes n Baseline/Sequential n Lossless mode n Progressive mode Display low quality image first, and then transmit and display more details Method 1: Send DC components first, then a few low frequency components, and then more components Method 2: Send significant bits first, then more less significant bits

Department of Computer Engineering University of California at Santa Cruz Decoding n Decoding is the inverse process of the encoding Recover the quantized coefficient matrix Recover the coefficient matrix IDCT n JPEG is lossy because of the quatization process

Department of Computer Engineering University of California at Santa Cruz Evaluation n To evaluate an image compression algorithm, there are two criteria Subjective - The visual quality vs. bit rate (subjective) Objective - The rate distortion curve (Peak SNR vs. bit rate) The difference image when the quality factor is 3

Department of Computer Engineering University of California at Santa Cruz Evaluation n The rate distortion curve