Compression Algorithms Robert Buckley MCIS681 Online Dr. Smith Nova Southeastern University.

Slides:



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

15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Michael Alves, Patrick Dugan, Robert Daniels, Carlos Vicuna
Data Compression Michael J. Watts
Compression & Huffman Codes
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems
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.
Spatial and Temporal Data Mining
A Data Compression Algorithm: Huffman Compression
Computer Science 335 Data Compression.
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.
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.
1 Lossless Compression Multimedia Systems (Module 2) r Lesson 1: m Minimum Redundancy Coding based on Information Theory: Shannon-Fano Coding Huffman Coding.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
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.
Chapter 2 Source Coding (part 2)
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.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
10/10/04 L5/1/28 COM342 Networks and Data Communications Ian McCrumRoom 5D03B Tel: voice.
1 Analysis of Algorithms Chapter - 08 Data Compression.
Prof. Amr Goneid Department of Computer Science & Engineering
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
Chapter 1: Data Storage.
Still-image compression Moving-image compression and File types.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Group No 5 1.Muhammad Talha Islam 2.Karim Akhter 3.Muhammad Arif 4.Muhammad Umer Khalid.
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.
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. 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:
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
An introduction to audio/video compression Dr. Malcolm Wilson.
Huffman coding Content 1 Encoding and decoding messages Fixed-length coding Variable-length coding 2 Huffman coding.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Compression  Data files compression  Music compression  Image and video compression.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Lossless Decomposition and Huffman Codes Sophia Soohoo CS 157B.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Data Compression Michael J. Watts
Computer Science: An Overview Eleventh Edition
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
Data Compression.
Data Compression.
Huffman Coding, Arithmetic Coding, and JBIG2
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.
CSE 589 Applied Algorithms Spring 1999
Judith Molka-Danielsen, Oct. 02, 2000
Image Coding and Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Chapter 8 – Compression Aims: Outline the objectives of compression.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Compression Algorithms Robert Buckley MCIS681 Online Dr. Smith Nova Southeastern University

Lossless Compression Defined Lossless Compression is an information coding technique whereby information is coded to compress the size of the information stored or transmitted without loosing any original information content.

Example of Lossless Compression Huffman Coding (Lossless Compression) – Huffman coding is an entropy encoding algorithm used for lossless data compression.entropy encodingalgorithmlossless data compression –Huffman coding uses a specific method for choosing the representation for each symbol, resulting in a prefix-free code (that is, the bit string representing some particular symbol is never a prefix of the bit string representing any other symbol) that expresses the most common characters using shorter strings of bits than are used for less common source symbols. Huffman was able to design the most efficient compression method of this type: no other mapping of individual source symbols to unique strings of bits will produce a smaller average output size when the actual symbol frequencies agree with those used to create the code.prefix-free code –Good Website: compression.com/lossless.htmlhttp:// compression.com/lossless.html

Example Lossless Compression Continued Huffman Coding Tree Structure & Probability Diagram –Code the most frequently used characters with the shortest binary code and the least used character set with the greatest binary code (see diagram).

Example of Lossless Compression Continued Huffman Coding & Probability Diagram –The probabilities with respect to the above figure are as follows: – Length of Code [Denning Tables] E[l]=l(a)P[a}+l(b)P[b]+l(c)P[c]+l(d)P[d]+l(e)P[e] –With probabilities of occurrence for a=0.25, b=0.25, c=0.25, d=0.125 and e=0.125, then symbol rate compression for the message of “aebbad” is as follows: 2(.25)+2(.25)+0(.25)+1(.125)+1(.125)=1.25 bits/ character instead of an uncompressed binary code of 3 bits/character.

Example of Lossless Compression Continued Run Length Coding –In contrast to Huffman coding, the Run Length Code uses repetitive patterns to project the levels of compression achievable and is depicted as follows: Original Data Stream: ….. Run Length Coding: ….. The compression ratio is 22/18 or 1.222:1.

Lossy Compression Defined Lossy Compression is a compression technique whereby information is coded such that human visual and auditory senses are mathematically modeled in order to allow certain spectral content to be ignored without losing significant fidelity or content.

Example of Lossy Compression JPEG Coding –Relies on human visual perception to code information such that although some information is decimated, the remaining coded information is perceived to maintain an acceptable level of fidelity.

Example of Lossy Compression Continued JPEG Coding –The (RGB) video image size can contain 1024 x 1024 pixel elements. Ultimately these pixel elements are then divided into multiple 16 x 16 RGB matrices and are then further divided into 4 (8x8) RGB matrices (4x64x3 bytes). –JPEG Compression begins processing this RGB video into a 4 (8x8) Luminance matrix or 4x64x1 byte and a 2x64x1 byte Chrominance blue and Chrominance red matrix respectively. The chrominance columns are generated from the 2nd row & 2nd column of the RGB matrix while the Luminance is processed using the complete 4x64x3 bytes see next figure.

Example of Lossy Compression Continued Example DCT Integral & Matrix

Example of Lossy Compression Continued JPEG begins by executing a DCT algorithm which transforms time sampled video into a downshifted Hilbert Transformed frequency domain replica. Afterwards, a Huffman coding and further Run Length Coding algorithm is applied to further compress the image.

Example of Lossy Compression Continued Compressions Achieved with JPEG are as follows:

Example of Lossy Compression Continued MPEG –Relies on Human Audio and Visual Perception to provide lossy compression similar to JPEG with the exception that the MPEG encoder transmits only scene differences after the initial visual scene is established.

MPEG Examples MPEG Compressed Files –Audio Compression –Video Compression

Audio Compression Methods Audio Files, first track is original sampled audio at 44.1 KHz and then compressed to 8KHz, 8 bits or 44.1/8 compressed. Click Speaker 1 or Speaker 2 to hear recordings. Recording 2 is recorded at 11 KHz and replayed at 8 KHz, 8 bits or 22/8 compressed. See if you can hear any differences in fidelity? Speaker 1Speaker 2

Example of MPEG Time & Frequency Domain Spectra MPEG Compressed Files –Audio Files FFT of 44.1 KHz sampled, 8 KHz at 8 Bit replayed and time sampled recording.

Complete Paper To Review The Complete Research Paper for Compression Schemes, Please Click on PDF Icon Below. White Paper PDF

MPEG Examples MPEG Compressed Files –Look at each video and see if the compressed replica shows any audio or visual differences? 1Mb File 240x180616kb 192x144

References /chap3.htmlhttp:// /chap3.html me.htmhttp:// me.htm Digital Technical Journal Vol. 5, No. 2, Spring 1993 Watkinson, John. (1999) MPEG-2. Focal Press, Boston, Mass. Watkinson, John. (1994). An Introduction to Digital Audio. Focal Press, Boston, Mass. Miano, John. (1999). Compressed Image File Formats. Addison-Wesley, New York, N.Y. Jack, Keith. (1996). Video Demystified. High Text Publications, San Diego, Ca. Solari, Stephen J. (1997). Digital Video And Audio Compression, McGraw-Hill, New York, N.Y. Pohlman, Ken C. (1995). Principles of Digital Audio 3rd Edition, McGraw-Hill, New York, N.Y