ECE 499/599 Data Compression & Information Theory. Thinh Nguyen Oregon State University

Similar documents
Multimedia Networking ECE 599

Multimedia Communications ECE 728 (Data Compression)

So, what is data compression, and why do we need it?

Data Compression. Media Signal Processing, Presentation 2. Presented By: Jahanzeb Farooq Michael Osadebey

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

CS 335 Graphics and Multimedia. Image Compression

GUJARAT TECHNOLOGICAL UNIVERSITY

Ch. 2: Compression Basics Multimedia Systems

Fundamentals of Video Compression. Video Compression

Ch. 2: Compression Basics Multimedia Systems

Huffman Code Application. Lecture7: Huffman Code. A simple application of Huffman coding of image compression which would be :

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay

Image coding and compression

Lecture 6 Review of Lossless Coding (II)

Data Compression. An overview of Compression. Multimedia Systems and Applications. Binary Image Compression. Binary Image Compression

Image Coding and Compression

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I

Bits and Bit Patterns

Data compression with Huffman and LZW

Data Representation. Types of data: Numbers Text Audio Images & Graphics Video

DCT Based, Lossy Still Image Compression

Compression; Error detection & correction

Lecture 6: Compression II. This Week s Schedule

A COMPRESSION TECHNIQUES IN DIGITAL IMAGE PROCESSING - REVIEW

Course Syllabus. Website Multimedia Systems, Overview

Topic 5 Image Compression

Lecture Information Multimedia Video Coding & Architectures

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation

CSEP 521 Applied Algorithms Spring Lossy Image Compression

EE67I Multimedia Communication Systems Lecture 4

Part 1 of 4. MARCH

CMPT 365 Multimedia Systems. Media Compression - Image

Mahdi Amiri. February Sharif University of Technology

VC 12/13 T16 Video Compression

Compression II: Images (JPEG)

Introduction to Compression. Norm Zeck

JPEG Descrizione ed applicazioni. Arcangelo Bruna. Advanced System Technology

Ch. 0: Course Overview Multimedia Systems

Compressing Data. Konstantin Tretyakov

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Lecture Coding Theory. Source Coding. Image and Video Compression. Images: Wikipedia

Lecture 5: Compression I. This Week s Schedule

Video Compression MPEG-4. Market s requirements for Video compression standard

CS/COE 1501

Lossless Compression Algorithms

Fundamentals of Multimedia. Lecture 5 Lossless Data Compression Variable Length Coding

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

Lecture Information. Mod 01 Part 1: The Need for Compression. Why Digital Signal Coding? (1)

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

JPEG Compression Using MATLAB

Lecture 8: Image and Video Compression

yintroduction to compression ytext compression yimage compression ysource encoders and destination decoders

VIDEO SIGNALS. Lossless coding

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

Video Codec Design Developing Image and Video Compression Systems

Georgios Tziritas Computer Science Department

JPEG 2000 compression

Lossless compression II

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY ACADEMIC YEAR / ODD SEMESTER QUESTION BANK

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

Compression; Error detection & correction

7: Image Compression

Interactive Progressive Encoding System For Transmission of Complex Images

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Lecture 10 (Chapter 7) ZHU Yongxin, Winson

Audio and video compression

Lecture 8 JPEG Compression (Part 3)

CS/COE 1501

CISC 7610 Lecture 3 Multimedia data and data formats

13.6 FLEXIBILITY AND ADAPTABILITY OF NOAA S LOW RATE INFORMATION TRANSMISSION SYSTEM

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding

Engineering Mathematics II Lecture 16 Compression

Noise Reduction in Data Communication Using Compression Technique

Scalable Compression and Transmission of Large, Three- Dimensional Materials Microstructures

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1

Keywords Data compression, Lossless data compression technique, Huffman Coding, Arithmetic coding etc.

Compression. storage medium/ communications network. For the purpose of this lecture, we observe the following constraints:

WIRE/WIRELESS SENSOR NETWORKS USING K-RLE ALGORITHM FOR A LOW POWER DATA COMPRESSION

Video Compression An Introduction

David Rappaport School of Computing Queen s University CANADA. Copyright, 1996 Dale Carnegie & Associates, Inc.

Data Representation. Reminders. Sound What is sound? Interpreting bits to give them meaning. Part 4: Media - Sound, Video, Compression

Image Compression - An Overview Jagroop Singh 1

INTRODUCTORY COMPUTER NETWORKS PHYSICAL LAYER, DIGITAL TRANSMISSION FUNDAMENTALS. Faramarz Hendessi

The Basics of Video Compression

Lecture 12: Compression

Digital Image Processing

Image Compression. CS 6640 School of Computing University of Utah

Data Compression Techniques for Big Data

Digital Image Representation Image Compression

What is multimedia? Multimedia. Continuous media. Most common media types. Continuous media processing. Interactivity. What is multimedia?

Audio Compression. Audio Compression. Absolute Threshold. CD quality audio:

Wireless Communication

Repetition 1st lecture

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

IMAGE COMPRESSION TECHNIQUES

Transcription:

ECE 499/599 Data Compression & Information Theory Thinh Nguyen Oregon State University

Adminstrivia Office Hours TTh: 2-3 PM Kelley Engineering Center 3115 Class homepage http://www.eecs.orst.edu/~thinhq/teaching/ece499/spring06/spring06.html

Adminstrivia Textbook Title: Introduction to Data Compression, third edition Author: Khalid Sayood Publisher: Morgan Kaufmann

Adminstrivia Grade Policy 25% Homework 30% Midterm 5% Class participation 40% Final

Syllabus Basic Information Theory Prefix Codes. Huffman Codes. Tunstall and Golomb Codes. Arithmetic Codes. Dictionary Codes: LZW, LZ77. Predictive coding and Burrows Wheeler. Lossy image compression and scalar quantization. Vector quantization. Nearest-neighbor search for VQ. Transform coding (DCT) and JPEG '87. Subband coding (wavelets) and SPIHT EBCOT and JPEG 2000. Intro to Video Coding and H.261/MPEG-1. Mpeg2 and Mpeg4. Audio and MP3's.

Why Compression? Multimedia applications generates a lot of data Need to compress data for efficient storage Need to compress data for efficient transmission.

Why Compression? Examples of applications that use compression. Video: DVD, video conferencing Image: JPEG Audio: MP3 Text: Winzip Visualization: 3D medical volume visualization Compression is everywhere!

Why compression? Speech 8000 samples/s 8 Kbytes/s CD audio NTSC Volume visualization voxels 44,100 samples/s, 2 bytes/sample, stereo 30 fps, 640x480 pixels, 3 bytes/pixel 30 fps, 1000x1000x1000 voxels, 3 bytes/voxels 176 Kbytes/s 30 megabytes/s 90 gigabytes/s

Lecture 1: Basic Compression Concepts Thinh Nguyen Oregon State University

Compression Lossless compression Also called entropy coding, reversible coding. Lossy compression Also called irreversible coding. Compression ratio = x / y x is the number of bits in x.

Compression: Beware! Compression ratio = x / y Two ways to make the ratio larger: Decrease the size of the compressed version. Increase the size of the uncompressed version!

Compression Classification Compression Lossless Decoded data = original data Comp. ratio < lossy comp. ratio Eliminate redundancy Used where errors are not allowed, e.g, computer programs. LZ, JBIG Lossy Decoded data ~ original data Comp. ratio > lossless comp. ratio Keeping important information Used where small errors are allowed, e.g, images, videos. JPEG, MPEG

Lossless Compression Data is not lost - the original is really needed. text compression. compression of computer binaries to fit on a floppy. Compression ratio typically no better than 4:1 Statistical Techniques: Huffman coding. Arithmetic coding. Golomb coding. Dictionary techniques: LZW, LZ77. Burrows-Wheeler Method. Standards Zip, bzip, GIF, PNG, JBIG, Lossless JPEG.

Lossy Compression Data is lost, but not too much: Audio. Video. Still images, medical images, photographs. Compression ratios of 10:1. Major techniques include: Vector Quantization. Wavelets. Block transforms. Standards: JPEG, JPEG 2000, MPEG (1, 2, 4, 7).

Why data compression possible? Redundancy exists in many places Texts Redundancy(German) > Redundancy(English) Video and images Redundancy (videos) > redundancy(images) Audio Redundancy(music)? Redundancy(speech) Eliminate redundancy keep essential information Assume 8 bits per character Uncompressed: aaaaaaaaab: 10x8 = 80 bits Compressed: 9ab = 3x8 = 24 bits Reduce the amount of bits to store the data Small storage, small network bandwidth, low storage devices. Ex: 620x560 pixels/frame 24 bits/pixel 1 MB 30 fps 30 MB/s (CD-ROM 2x 300KB/s) 30 minutes 50 GB

Why data compression possible? Always possible to compress? Consider a two-bit sequence. Can you always compress it to one bit? Information theory is needed to understand the limits of compression and give clues on how to compress well. We will study information theory shortly!

Compression Techniques JPEG (DCT), JPEG-2000 (Wavelet) Images JBIG Fax LZ (gzip) Text MPEG Video 16:1 compression ratio

Typical Compression Ratios

Digital Representation of Data Digitization Analog Discrete Time Digital Why digitize? Universality of representation Robustness to error, aging, distortion, noise

Digital Representation Analog Signal Sample in time Discrete Time Signal Quantize amplitude Digital Signal

Advantages of Digital Representation Storage of different information types on the same devices -> easy integration of different media. Transmission of various information types over a single digital network. Processing and manipulation of various information by computer programs for editing, quality improvement, or recognition of meaningful information.

Disadvantages of Digital Representation Quantization distortion Sampling distortion (aliasing) Need large amount of digital storage capacity Compression We will deal with only digital information in this class

Digital Representation Analog data: Also called continuous data. Represented by real numbers. Digital data: Finite set of symbols {a1, a2,, an}. All data represented as sequences (strings) in the symbol set. Example: {a, b, c, d, r}: abracadabra. Digital data can be an approximation to analog data.

Symbols Roman alphabet plus punctuation. ASCII 256 symbols. Binary {0, 1}: 0 and 1 are called bits. All digital information can be represented in binary. {a, b, c, d} fixed length representation: a 00; b 01; c 10; d 11. 2 bits per symbol.

Symbols Suppose we have n symbols. How many bits b (as a function of n) are necessary to represent a symbol in binary? What if some symbols occur more frequently than others, can we reduce the average number of bits to represent the symbols?