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.

Slides:



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

Data Compression CS 147 Minh Nguyen.
Chapter 7 End-to-End Data
School of Computing Science Simon Fraser University
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
Compression Techniques. Digital Compression Concepts ● Compression techniques are used to replace a file with another that is smaller ● Decompression.
CSc 461/561 CSc 461/561 Multimedia Systems Part B: 1. Lossless Compression.
SWE 423: Multimedia Systems
SWE 423: Multimedia Systems Chapter 7: Data Compression (1)
Spatial and Temporal Data Mining
SWE 423: Multimedia Systems
Klara Nahrstedt Spring 2014
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
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.
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
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.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
Image and Video Compression
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Software Research Image Compression Mohamed N. Ahmed, Ph.D.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
8. Compression. 2 Video and Audio Compression Video and Audio files are very large. Unless we develop and maintain very high bandwidth networks (Gigabytes.
Compression Algorithms
Chapter 2 Source Coding (part 2)
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Introduction to JPEG and MPEG Ingemar J. Cox University College London.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
Page 110/6/2015 CSE 40373/60373: Multimedia Systems So far  Audio (scalar values with time), image (2-D data) and video (2-D with time)  Higher fidelity.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2010.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
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.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
JPEG CIS 658 Fall 2005.
22-Oct-15CPSC558: Advanced Computer Networks Chapter 7 End-to-End Data –Data Manipulating Functions (Affecting Throughputs) How to encode the message into.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
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:
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2011.
CS654: Digital Image Analysis
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Multi-media Data compression
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
Page 1KUT Graduate Course Data Compression Jun-Ki Min.
Dr. Hadi AL Saadi Image Compression. Goal of Image Compression Digital images require huge amounts of space for storage and large bandwidths for transmission.
1 Chapter 3 Text and image compression Compression principles u Source encoders and destination decoders u Lossless and lossy compression u Entropy.
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
JPEG.
Data Compression.
Data Compression CS 147 Minh Nguyen.
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.
Image Transforms for Robust Coding
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

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 period in telephone call  Redundant material

3 Types of Redundancy  Spatial redundancy  Values of neighboring pixels are strongly correlated  Redundancy in scale  Straight edges and constant regions are invariant under rescaling  Redundancy in frequency  the spectral values for the same pixel location are often correlated  An audio signal can completely mask a sufficiently weaker signal in its frequency-vicinity  Temporal redundancy  Adjacent frames in a video sequence  A strong audio signal can mask an adequately lower distortion in a previous or future time block  Stereo redundancy  Stereo channels are correlated

4 Tradeoffs in Compression  Quality vs. Size  Reduced quality is often OK for multimedia  Example .bmp (1153 KB) .gif (196 KB) .jpg max quality (168 KB) .jpg low quality (63 KB)  Processing time vs. Size  Software vs. hardware encoding and decoding  Advantages of software decompression  Reasonable compression ratio with acceptable quality  Audio: 4:1 Images: 10:1 Video: 50:1

5 Characteristics of Compression Method  Lossless : Original data can be recovered precisely Lossy : Not lossless  Intraframe : Frames are coded independently Interframe : Frames are coded with reference to previous and/or future frames  Symmetrical : encoding time  decoding time Asymmetrical : encoding time >> decoding time  Real-time : Encoding-decoding delay  50ms  Scalable : Frames are coded in different resolutions and quality levels

6 Perceptible Quality vs. Required BW

7 Source Encoders / Destination Decoders Software only Special processors/hardware

8 Classification of Coding Methods  Entropy encoding: lossless  Run-length encoding  Statistical encoding  Source encoding: lossy  Hybrid coding

9 Entropy Encoding  Entropy : Uncertainty, Surprise, or Information  defines min # of bits needed to represent the information content without information loss  Entropy  The semantics of data is ignored  Data to be compressed is considered as a digital sequence  Can be used for any media  Run-length encoding  Huffman encoding  Arithmetic encoding  LZW (Dictionary) encoding

10 Run-Length Encoding  Many messages have long ``runs'' of a single symbol  Uncompressed data : UNNNNNNIMANNHEIM  Encoding: transmit run length instead of the run itself  Run-length coded : U!6NIMANNHEIM  need byte stuffing  Binary string: …  …  If first string is always 0,  Run length encoded in count field of length k  What is the optimum value for k?  Run encoded as  1 bit = ‘1’, 7 bits = Count, 8 bits = Symbol  Non-run encoded as  1 bit = ‘0’, 7 bits = Count, b*8 bits = sequence of symbols (b is the value of Count)

11 Statistical Encoding

12 Source Encoding  Takes into account the semantics of the data  is based on the content of the original signal  divides the original data into relevant and irrelevant information, and remove irrelevant data  exploits different characteristics of the human perceptive faculty  Differential (Predictive) encoding  DPCM  DM  Motion-compensated prediction  Transformation encoding  FT (Fourier Transformation)  DCT (Discrete Cosine Transformation)  DWT (Discrete Wavelet Transformation)

13 Transform Encoding DCT principles

14 Text Compression

15 Type of coding  Static coding  Character set and the relative frequencies of occurrence are known  Compute a set of codewords once, then used for all subsequent transfer  Dynamic/Adaptive coding  Dynamically compute the set of codewords that are being used at each point during a transfer

16 Huffman Coding (1)  Provides the optimal code for given data  using min. # of bits given the probability  Most frequently-occurring symbols have shortest codes  No symbol code can be a prefix of any other symbol's code  Huffman code tree and encoding P(ABCD)=1 P(BCD)=1/4 P(CD)=1/8 P(D)=1/16 P(C)=1/16P(B)=1/8 P(A)=3/ Huffman Table A1 B01 C001 D000

17 Huffman Coding (2)  Decoding Huffman code  needs Huffman table  a part of the transmitted data stream  or already known by the decoder  or calculated at run-time (dynamic Huffman coding)  performs only a simple table lookup  Standard Huffman table used in audio/video coding  known in advance both encoder and decoder  Adv : faster encoding (real-time encoding)  Disadv: not optimal

18 Arithmetic Coding  In theory, as optimal as Huffman coding  In practice, slightly better than Huffman coding in audio/video coding  Works with floating point number instead of characters, so enables a closer approximation  But introduces truncation error  Patents held by IBM, AT&T, Mitsubish

19 Lempel-Ziv (LZ) Coding  A dictionary-based coding  Compute a codeword for a word instead of a character

20 Lempel-Ziv-Welsh (LZW) Coding Dynamic extension of entries