CS 414 - Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014.

Slides:



Advertisements
Similar presentations
JPEG DCT Quantization FDCT of 8x8 blocks.
Advertisements

SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
JPEG.
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
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.
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.
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.
CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards.
Image Compression: JPEG Multimedia Systems (Module 4 Lesson 1)
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
CM613 Multimedia storage and retrieval Lecture: Lossy Compression Slide 1 CM613 Multimedia storage and retrieval Lossy Compression D.Miller.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
CSE & CSE Multimedia Processing Lecture 7
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.
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.
Hardware/Software Codesign Case Study : JPEG Compression.
An introduction to audio/video compression Dr. Malcolm Wilson.
Digital Image Processing Lecture 21: Lossy Compression Prof. Charlene Tsai.
The JPEG Standard J. D. Huang Graduate Institute of Communication Engineering National Taiwan University, Taipei, Taiwan, ROC.
JPEG (Joint Photographic Expert Group)
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
CS654: Digital Image Analysis
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Introduction to JPEG m Akram Ben Ahmed
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
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.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Transport Subsystem (Part 2) + Midterm Review Klara Nahrstedt Spring 2014.
1 Chapter 4: Compression (Part 2) Image Compression.
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.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
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
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
Digital Image Processing Lecture 21: Lossy Compression
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
CMPT 365 Multimedia Systems
CIS679: MPEG MPEG.
CIS679: JPEG (more) Review of JPEG More about JPEG Lab project.
JPEG Pasi Fränti
JPEG Still Image Data Compression Standard
The JPEG Standard.
Image Coding and Compression
Presentation transcript:

CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014

CS Spring 2014 Administrative MP1 is posted

Today Covered Topics Hybrid Coding:  JPEG Coding CS Spring 2014

JPEG Compression (Baseline) FDCT Source Image Quantizer Entropy Encoder Table Compressed image data DCT-based encoding 8x8 blocks R B G CS Spring 2014 Image Preparation Image Processing

1. Image Preparation Image Preparation:  Source image consists of components (C i ) and to each component we assign YUV or RGB signals. Image Component Preparation:  Each component divided into blocks (8x8 pixels) Image Block Preparation:  Blocks (data units) need to be ordered Interleaved or non-interleaved block ordering

2. Image Processing Shift values [0, 2 P - 1] to [-2 P-1, 2 P-1 - 1]  e.g. if (P=8), shift [0, 255] to [-127, 127]  DCT requires range be centered around 0  Values in 8x8 pixel blocks are spatial values and there are 64 samples values in each block Transform values  From spatial intensity to frequency values via FDCT transformation (encoder) and  From frequency to spatial intensity values (decoder) CS Spring 2014

Equations for 2D DCT Forward DCT: Inverse DCT:

Visualization of 2D DCT Basis Functions Increasing frequency CS Spring 2014

Coefficient Differentiation F(0,0)  includes the lowest frequency in both directions  is called DC coefficient  Determines fundamental color of the block F(0,1) …. F(7,7)  are called AC coefficients  Their frequency is non-zero in one or both directions CS Spring 2014

3. Quantization Throw out bits Consider example: = 45 (6 bits)  We can truncate this string to 4 bits: = 11  We can truncate this string to 3 bits: = 5 (original value 40) or = 6 (original value 48) Uniform quantization is achieved by dividing DCT coefficients by N and round the result (e.g., above we used N=4 or N=8) In JPEG – use quantization tables  Fq(u,v) = F(u,v)/Q uv  Two quantization tables – one for luminance and one for two chrominance components CS Spring 2014

De facto Quantization Table Eye becomes less sensitive CS Spring 2014

4. Entropy Encoding Compress sequence of quantized DC and AC coefficients from quantization step  further increase compression, without loss Separate DC from AC components  DC components change slowly, thus will be encoded using difference encoding CS Spring 2014

DC Encoding DC represents average intensity of a block  encode using difference encoding scheme Because difference tends to be near zero, can use less bits in the encoding  categorize difference into difference classes  send the index of the difference class, followed by bits representing the difference CS Spring 2014

Difference Coding applied to DC Coefficients CS Spring 2014

AC Encoding Use zig-zag ordering of coefficients  orders frequency components from low->high  produce maximal series of 0s at the end  Ordering helps to apply efficiently entropy encoding Apply Huffman coding Apply RLE on AC zero values CS Spring 2014

Huffman Encoding Sequence of DC difference indices and values along with RLE of AC coefficients Apply Huffman encoding to sequence Attach appropriate headers Finally have the JPEG image! CS Spring 2014

Interchange Format of JPEG CS Spring 2014

Example - One Everyday Photo 2.76M CS Spring 2014

Example - One Everyday Photo 600K CS Spring 2014

Example - One Everyday Photo 350K CS Spring 2014

Example - One Everyday Photo 240K CS Spring 2014

Example - One Everyday Photo 144K CS Spring 2014

Example - One Everyday Photo 88K CS Spring 2014

Discussion What types of image content would JPEG work best (worst) for? Is image compression solved? What’s missing from JPEG? CS Spring 2014