Multimedia- and Web-based Information Systems Lecture 6.

Slides:



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

SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
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.
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.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
1. Introduction JPEG standard is a collaboration among : International Telecommunication Union (ITU) International Organization for Standardization (ISO)
JPEG C OMPRESSION A LGORITHM I N CUDA Group Members: Pranit Patel Manisha Tatikonda Jeff Wong Jarek Marczewski Date: April 14, 2009.
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
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
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
JPEG CIS 658 Fall 2005.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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.
Compression There is need for compression: bandwidth constraints of multimedia applications exceed the capability of communication channels Ex. QCIF bit.
Perl: Lecture 1 The language. What Perl is Merger of Unix tools – Very popular under UNIX – shell, sed, awk Programming language – C syntax Scripting.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
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.
Digital Image Processing Lecture 22: Image Compression
JPEG (Joint Photographic Expert Group)
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
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.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
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
CSI-447: Multimedia Systems
CS644 Advanced Topics in Networking
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
Chapter 7.2: Layer 5: Compression
CMPT 365 Multimedia Systems
UNIT IV.
Judith Molka-Danielsen, Oct. 02, 2000
JPEG Still Image Data Compression Standard
The JPEG Standard.
Image Coding and Compression
Fundamentals of Video Compression
Presentation transcript:

Multimedia- and Web-based Information Systems Lecture 6

Picture Compression Overview The JPEG method

Important steps during the compression of single pictures Picture Preparation – Generation of a suitable digital representation – Blocks of 8x8 pixels, fixed number of bits per pixel, planes, color model Picture preparation uncompressed picture Picture processing Quanti- sation Entropy- coding compressed picture

Important steps during the compression of single pictures Picture Processing – Mathematically exact – Transformations Time domain to frequency domain Cosine Transformation (DCT) Picture preparation uncompressed picture Picture processing Quanti- sation Entropy- coding compressed picture

Important steps during the compression of single pictures Quantisation – Representation of Values (Losses) – Importance of information – Characteristic curve (Companding) Picture preparation uncompressed picture Picture processing Quanti- sation Entropy- coding compressed picture

Important steps during the compression of single pictures Entropy encoding – Lossless compression – Linear data stream Picture preparation uncompressed picture Picture processing Quanti- sation Entropy- coding compressed picture

JPEG and Motion JPEG Demands Independent of the size of a picture Arbitrary Width/Height-relation Independent of color model and color variety Contents of a picture may have arbitrary complexity State of the art regarding compression ratio Sequential and progressive picture composition

JPEG Overview Different Modes – Overview of the different possibilities Picture Preparation Pixel Block, MCU Picture Processing Prediction FDCT QuantisationEntropy encoding Run time encoding Huffman

JPEG Modes Lossy, sequential DCT-based Mode (base mode, baseline process) Extended lossy DCT-based Mode Lossless Mode Hierarchical Mode

Baseline Process Uses – Planes – Blocks (8x8) – Minimum Coded Unit (MCU) – FDCT (Forward Discrete Cosine Transformation) – Run length encoding – Huffmann

Picture Preparation Picture consists of multiple planes (max. 255) – RGB, YUV or YIQ – Alpha channel

Planes with different resolution 2nd and 3rd plane have half the resolution in X-direction (e.g. YUV)

Minimum Coded Unit (MCU) Assembly of data units from multiple different planes

DCT-based mode Lossy and sequential 8 bits per Pixel 8x8 BlocksFDCT QuantisationTables Entropy encoding Tables uncompressed picture compressed picture

Transformation of blocks

Forward Discrete Cosine Transformation (FDCT) Forward Discrete Cosine Transformation (FDCT): with: Formula applied to each block for all 0 ≤ u, v ≤ 7:  Blocks with 8x8 pixel result in 64 DCT coefficients:  1 DC-coefficient S 00 : basic color of the block  63 AC-coefficients: (likely) zero or near-zero values, for u,v=0; else cu,cv=1

Example

Quantisation 64 DCT-Coefficients Table of coefficients for the quantisation S q (v,u) = round (S(v,u) / Q(v,u)) R(v,u) = S q (v,u) * Q(v,u) Trough Q(v,u), particular areas can be emphasized / neglected

Entropy encoding Quantisated DC-coefficient Zig-zag

Sequential image composition In one step (encoded / decoded) Top to bottom

Progressive image composition Image gets clearer through multiple steps

Summary JPEG – State of the Art for the compression of single pictures – Variety of degrees of freedom E.g. Resolution – Lossless mode almost reaches a 2:1 ratio

Perl

What Perl is Merger of Unix tools – Very popular under UNIX – shell, sed, awk Programming language – C syntax Scripting language – Ability to change everything during runtime – Fast to employ, one-liners possible – Slower than C

What Perl is Easy to learn – Learning curve similar to human language – More difficult things possible Tell it to be more strict Object orientation Esp. suited for the web & text processing – Regular expressions

How to get & use it – ActiveState makes port for Microsoft Windows Current Version is Comprehensive documentation included – C:\Perl\html\index.html – Perldoc Running perl scripts – perl –w script.pl – #!/usr/bin/perl + chmod (Unix)

Variables Scalars$ Hash% No need to declare variables Automatic conversion of numbers and strings $camels = ‘123‘; print $camels + 1, “\n“;

Arrays Multivalued Variable Lookup by number List Assignments = ("couch", "chair", "table", "stove") ($one, $two, $three, $four) ($one, $two) = ($two, $one) $home[0] - $home[3]

Hashes Multivalued Variable Lookup by name List Assignments Accessing %longday = ("Sun" => "Sunday", "Mon" => "Monday", "Tue" => "Tuesday" = %longday $longday{"Sun"}, $longday{"Mon"}

Quoting in Perl Double Quotes ““ interprete variables and backslashes Single Quotes ‘‘ don‘t $one=“two”; $two=“four”; print ‘$one + $one is $two \n’; print “$one + $one is $two \n”;