STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.

Slides:



Advertisements
Similar presentations
JPEG Compresses real images Standard set by the Joint Photographic Experts Group in 1991.
Advertisements

T.Sharon-A.Frank 1 Multimedia Compression Basics.
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.
Chapter 7 End-to-End Data
Chapter 5 Making Connections Efficient: Multiplexing and Compression
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems
JPEG.
Data Compression Basics
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.
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.
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 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 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.
CM613 Multimedia storage and retrieval Lecture: Lossy Compression Slide 1 CM613 Multimedia storage and retrieval Lossy Compression D.Miller.
Chapter 2 Source Coding (part 2)
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
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.
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.
Indiana University Purdue University Fort Wayne Hongli Luo
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
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.
Hardware/Software Codesign Case Study : JPEG Compression.
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.
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:
An introduction to audio/video compression Dr. Malcolm Wilson.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
Introduction to JPEG m Akram Ben Ahmed
JPEG. Introduction JPEG (Joint Photographic Experts Group) Basic Concept Data compression is performed in the frequency domain. Low frequency components.
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
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.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
IMAGE COMPRESSION.
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
Data Compression.
Data Compression CS 147 Minh Nguyen.
CMPT 365 Multimedia Systems
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.
Judith Molka-Danielsen, Oct. 02, 2000
JPEG Still Image Data Compression Standard
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:

STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION

Recaps.. In Module 10, w have Variable Length Coding. The main objective of carrying VLC is to increase the coding efficiency, and this is possible due to the differences in probability of symbols occurrences. Recaps that the formulae to calculate the coding efficiency is: Since the entropy (H) is fixed regardless of type of coding being used, in VLC we managed to increase the coding efficiency by yielding a lower average number of bits per symbol (Ṝ). This also implies that we have somehow managed to compress the information!!

Compression Compression refers to the process by which the description of computerized information is modified so that the capacity required to store it or the bit- rate required to transmit it is reduced. Compression is carried out for the following reasons: (1) reduce storage requirement (2) reduce processing time (3) reduce transmission duration Basically, there are two types of compression:- (1) lossless compression (2) lossy compression

Lossless Compression - The information is recovered without any alteration after the decompression process. - The information contained in the compression bit stream is identical to the information contained in the original source bit stream. - Also called bit-preserving or reversible compression. - E.g. Huffman Coding, Fano Coding, Run Length Coding etc. (Note: We have learned Fano and Huffman coding in Module 10, we shall learn Run-Length Coding next)

Run Length Coding Any sequence of repetitive characters may be replaced by a short form. The algorithm may take into account any repeated character. A series of n successive characters c will be replaced by the character c itself followed by a special character, the flag, followed by the number n, that is the number of occurrences of the repeated character. In fact, the substitution should only take place if the number of occurrences is equal to or greater than four (why 4? – we shall look into this next).

Run Length Coding (cont.) Lets digits 1, 2, 3 represent Red, Green, and Blue. These will correspond to ci. Let a scan line be of length 33 consisting of as xi. Then, the run-length encoded stream will be the series of tuples (1,11), (3,10), (2,9), and 111 where 11, 10, 9, are the ni. Or 1!113!102!9111 Note: 111 – 3 symbols 1!1 – also 3 symbols Thus, we only do run length coding for 4 or more repetitive symbols as such compression is possible.

Exercise 1 Derive the Run Length code for the following information: Working - (1,6), (2,7),(3,8),111,222,(3,12) Run Length code - 1!62!73! !12 What is the compression rate?

Exercise 2 Decode the following Run Length code: 3!102!41!93331!11222 Working – (3,10),(2,4),(1,9),333,(1,11),222 Original Information – Note: Compression is reversible!!! Lossless Compression!!

Lossy Compression Lossly Compression - Also called irreversible compression. - The decompressed information is different from the original uncompressed information. - This mode is suitable for most continuous media such as sound and video as well as for many images. - E.g. JPEG, MPEG, MP3 etc. (Note: In this Module, we will only learn the lossy compression characteristics of JPEG)

JPEG (Joint Photographic Expert Group) In this module, we shall learn the basic steps in JPEG compression techniques, which involves: (1) Block preparation (2) Discrete Cosine Transform (3) Quantization (4) Run Length coding (5) Huffman coding The main compression techniques of JPEG is made possible due to the spatial correlation of adjacent pixels. Though Run Length coding and Huffman coding are both lossless, compression becomes lossy in this JPEG operation due to quantization (where some information is being discarded)

JPEG (cont.) Block Preparation - An image is divided into individual blocks. - A block consists of 8*8 pixels - Why? More accurate since each block is treated individually (i.e. the following compression steps are applied onto individual blocks, not onto the image as a whole)

JPEG (cont.) Discrete Cosine Transform - The block of 8*8 sampled values in space domain is transformed into another block of 8*8 coefficient values in spectral frequency domain. - Why? - Easier to compress data in the frequency domain (i.e. which will be proven in the following quantization step). - Compression is based on the assumption that samples values in individual blocks of an image usually contains similar information (i.e. high coefficients that have low frequency) – spatial correlation.

JPEG (cont.) Discrete Cosine Transform

JPEG (cont.) Quantization - The block of 8*8 DCT coefficients are divided by an 8*8 quantization table. - Why? To allow further compression of entropy encoding by neglecting insignificant low coefficients. (Note: Human eyes are not sensitive to the low coefficients of the high frequencies). Thus in quantization, these low coefficients of the high frequencies are discarded Note: This is where compression becomes lossy! Since the low coefficients information is being discarded, even if we reverse the encoding process, we will not retain the original information!!

JPEG (cont.) Quantization

JPEG (cont.) Run Length Coding - To achieve higher level of compression by getting rid of long successive identical coefficient values. Encoding is carried out in a zig-zag manner

JPEG (cont.) Huffman coding - To achieve greater level of compression by using Variable Length Coding (VLC) Do not freak out!! You need not to fully understand the details of each compression step in JPEG. What is important for you to know is the basic overview of each step and that it becomes lossy due to quantization, where some information is being discarded!

Exercise 3 Assuming an image file of 240 kByte is being compressed by using JPEG2000 with compression rate of 1:12. Calculate the size of the file in JPEG2000 format.

STATISTIC & INFORMATION THEORY (CSNB134) COMPRESSION --END--