Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

Data Compression CS 147 Minh Nguyen.
Web Design Vocab 3 PNG, JPG, GIF, MP3, MPEG.
Image Data Representations and Standards
Lecture 10: Dictionary Coding
CS216: Program and Data Representation University of Virginia Computer Science Spring 2006 David Evans Lecture 15: Compression
Lossless Compression - II Hao Jiang Computer Science Department Sept. 18, 2007.
Chapter 7 End-to-End Data
School of Computing Science Simon Fraser University
CSc 461/561 CSc 461/561 Multimedia Systems Part B: 1. Lossless Compression.
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (1) Hai Tao.
CSCI 3 Chapter 1.8 Data Compression. Chapter 1.8 Data Compression  For the purpose of storing or transferring data, it is often helpful to reduce the.
SWE 423: Multimedia Systems Chapter 7: Data Compression (2)
Computer Science 335 Data Compression.
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Graphics on the Web CS575 Spring 2006 Dr.Abbot Student: Andre Liv.
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Hao Jiang Computer Science Department Sept. 27, 2007
Lossless Compression - I Hao Jiang Computer Science Department Sept. 13, 2007.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
Scanning and Graphics Workshop I Graphics for the Web, Scanning and Introduction to Photoshop.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
Compression Algorithms Robert Buckley MCIS681 Online Dr. Smith Nova Southeastern University.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
296.3Page 1 CPS 296.3:Algorithms in the Real World Data Compression: Lecture 2.5.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Digital Image: Representation & Processing (2/2) Lecture-3
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
1 TTM4142 Networked Multimedia Systems Video Basics Image and Video Lossless Compression Leif Arne Rønningen Autumn 2008.
Final Review by Amy Zhang Digital Media Computing.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
Image Compression (Chapter 8) CSC 446 Lecturer: Nada ALZaben.
© Keith Vander Linden, 2005 Jeremy D. Frens, Open up the box of a computer, and you won't find any numbers in there. You'll find electromagnetic.
1 Classification of Compression Methods. 2 Data Compression  A means of reducing the size of blocks of data by removing  Unused material: e.g.) silence.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
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. Compression in General: Why Compress? So Many Bits, So Little Time (Space) CD audio rate: 2 * 2 * 8 * = 1,411,200 bps CD audio storage:
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2011.
Data compression. lossless – looking for unicolor areas or repeating patterns –Run length encoding –Dictionary compressions Lossy – reduction of colors.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Digital Image Processing Lecture 22: Image Compression
compress! From theoretical viewpoint...
Multi-media Data compression
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
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.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Lecture 4: Data Compression Techniques TSBK01 Image Coding and Data Compression Jörgen Ahlberg Div. of Sensor Technology Swedish Defence Research Agency.
Compression & Huffman Codes
Computer Science Higher
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Compression.
JPG vs GIF vs PNG What is the difference?
Introduction to Computer Science - Lecture 4
Raster Images CPSC 1030.
Huffman Coding, Arithmetic Coding, and JBIG2
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.
UNIT IV.
CSE 589 Applied Algorithms Spring 1999
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007

Arithmetic Coding  Arithmetic coding represents a input symbol string as a small interval in [0, 1)  The size of the interval equals P(s k1 ) P(s k2 ) P(s k3 ) … P(s kn )  We can then represent the interval with a binary code. 01 An half open interval [0.3, 0.34) in [0, 1)

An example  A source output symbols {A, B, C, D, E, F, $}. $ is the termination symbol. Their probabilities are as follows. P(A) = 0.2 P(B) = 0.1 P(C) = 0.2 P(D) = 0.05 P(E) = 0.3 P(F) = 0.05 P($) =

Arithmetic Coding Example Now we have an input string C A E $ A B C D E F $ = Code:

Compress Multimedia Data Losslessly  Model the media (audio, image, graphics data, or video as) as a source that generates symbols.  The naïve way of choosing symbols: –Pixels for images and videos –Samples for audios –Characters for text messages  Apply the lossless compression methods to the string of symbols.

Lossless Grayscale Image Compression  In lossless image compression, a prediction method is usually applied when generating symbols … … + -

Example A Grayscale Image

The Differential Image

Entropy H = Entropy H = GrayImage (bytes) Difference Image (bytes) Huffman coding: Arithmetic coding: LZ77 coding (gzip): LZW (compress): Original image size: bytes

Lossless JPEG  Prediction options in lossless JPEG CB AX X ~ A X ~ B X ~ C X ~ A + B – C X ~ A + (B – C)/2 X ~ B + (A – C)/2 X ~ (A + B)/2

PNG (Portable Network Graphics)  PNG is a lossless image compressing method based on LZ77.  PNG supports three main image types: true color, grayscale and palette-based ("8-bit").  PNG supports alpha channel

PNG (cont)  PNG also supports interlaced coding and decoding The scanning pattern in a 8x8 block. The whole image is Partitioned into 8x8 blocks and scanned based on the pattern In each block. PNG website

GIF (Graphics Interchange Format)  GIF was devised by UNISYS and Compuserve.  GIF is based on LZW lossless compression.  GIF supports 8bit (256) color images only. Each image can have its own color table.  It supports transparency layer and simple animation functions.  It also supports interlaced coding and decoding.

GIF (cont) Row Pass GIF interlaced Scanning order

Binary Image Compression  Run length Coding We can encode the image as: 2b 8w 2b 4b 8w In fact, we do not have to save the black or white information. New code is like:

Binary Image Compression  More scanning patterns?  We can compress the run-length symbols using Huffman coding, arithmetic coding, or dictionary based methods.  Binary image compression is widely used in applications such as Facsimile.  JBIG is a standard for binary image compression.

Audio Compression  Audio can also be compressed in a similar way to image data.  For lossless audio compression, prediction is usually applied first. –Simple prediction. –Adaptive prediction.  Stereo decorrelation.  Entropy coding.

Examples  FLAC (free lossless audio codec) –Polynomial fitting prediction or linear prediction. –Rice coding.  MPEG4-ALS –Lossless audio coding standard in MPEG4. –Adaptive Linear Prediction. –Supports up to channels. –Fast random access. –Rice coding.  Apple lossless audio coding (ALAC)

MPEG-4 ALS System Diagram