Image Compression The still image and motion images can be compressed by lossless coding or lossy coding. Principle of compression: - reduce the redundant.

Slides:



Advertisements
Similar presentations
Data Compression CS 147 Minh Nguyen.
Advertisements

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.
SWE 423: Multimedia Systems
Spatial and Temporal Data Mining
Image Compression (Chapter 8)
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Klara Nahrstedt Spring 2014
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
2007Theo Schouten1 Compression "lossless" : f[x,y]  { g[x,y] = Decompress ( Compress ( f[x,y] ) | “lossy” : quality measures e 2 rms = 1/MN  ( g[x,y]
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 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.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
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.
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
Prof. Amr Goneid Department of Computer Science & Engineering
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2010.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 8 – Image Compression.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
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
Image Compression – Fundamentals and Lossless Compression Techniques
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Image Compression Fasih ur Rehman. Goal of Compression Reduce the amount of data required to represent a given quantity of information Reduce relative.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Computer Vision – Compression(1) Hanyang University Jong-Il Park.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Coding Theory Efficient and Reliable Transfer of Information
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.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis
Digital Image Processing Lecture 22: Image Compression
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
Chapter 8 Lossy Compression Algorithms. Fundamentals of Multimedia, Chapter Introduction Lossless compression algorithms do not deliver 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.
IT472 Digital Image Processing
Entropy vs. Average Code-length Important application of Shannon’s entropy measure is in finding efficient (~ short average length) code words The measure.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 5 ECEC 453 Image Processing Architecture Lecture 5, 1/22/2004 Rate-Distortion Theory,
Introductions What Is Data Compression ? Data compression is the process of reduction in the amount of signal space that must be allocated to a given.
Chapter 8 Lossy Compression Algorithms
Image Compression (Chapter 8)
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
Digital Image Processing Lecture 20: Image Compression May 16, 2005
IMAGE COMPRESSION.
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Algorithms in the Real World
Data Compression.
Data Compression CS 147 Minh Nguyen.
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
Context-based Data Compression
Image Compression 9/20/2018 Image Compression.
CMPT 365 Multimedia Systems
Digital Multimedia Coding
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.
Image Compression Fundamentals Error-Free Compression
Standards Presentation ECE 8873 – Data Compression and Modeling
UNIT IV.
CSE 589 Applied Algorithms Spring 1999
Presentation transcript:

Image Compression The still image and motion images can be compressed by lossless coding or lossy coding. Principle of compression: - reduce the redundant information, e.g., coding redundancy interpixel redundancy psychovisual redundancy - knowledge-based image contents description and structure modeling

Image Compression Code length - fixed length - variable length -- The average code-length is calculated as: Pk(rk) is the probability of the occurrence of event rk, l(rk) is the code length of event rk

Image Compression Entropy coding - Use code-words with different lengths to losslessly represent symbols with different probabilities - Why? Use small number of bits to represent more frequent symbols and use large number of bits to represent less frequent symbols so that the length of overall symbols can be reduced. - How: - Huffman coding - Arithmetic coding

Image Compression Example of variable length coding r(k) p(r(k)) code 1 L1 Code 2 L2 r(0)=0 0.19 000 3 11 2 r(1)=1/7 0.25 001 3 01 2 r(2)=2/7 0.21 010 3 10 2 r(3)=3/7 0.16 011 3 001 3 r(4)=4/7 0.08 100 3 0001 4 r(5)=5/7 0.06 101 3 00001 5 r(6)=6/7 0.03 110 3 000001 6 r(7)=1 0.02 111 3 000000 6 L(avg)=2(0.19)+2(0.25)+2(0.21)+3(0.16)+4(0.08)+5(0.06)+6(0.03)+6(0.02) =2.7bits Redundancy: R(D)=1-2.7/3 = 0.1 = 10%

Image Compression Inter-pixel correlation - pixel values can be guessed (predicted) on the basis of the value of its neighbors - The following redundancy can be reduced: -- spatial redundancy -- geometric redundancy -- inter-frame redundancy Human perception redundancy

Image Compression

Encoder and Decoder Example of image transmission f(x,y)  source encoder channel encoder f(x,y)’  source decoder  Channel decoder Mapper quantizersymbol encoder Inverse Mapper  symbol decoder

Information theory Information measurement Note: Event E which occurs with probability P(E) contains I(E) units of information e.g., P(E) =1  I(E) =0 (which means there is no uncertainty for event E, it always happens) e.g., If we set the base as 2  -log2P(E) if we flip a coin  P(E) = ½, then I(E) = -log2(1/2) = 1 ( “bit”, unit of information) (e.g., flipping a coin)

Information theory (cont’d) Entropy of the source (uncertainty): H(Z) is the average amount of information; H(Z)   uncertainty   information  If the source symbols occur with equal probability, the entropy is maximum Theoretically, H(Z) is the minimum code length for each symbol, which is the so-called Shannon’s first theorem for noiseless image coding

Information theory (cont’d) Variable-length coding -- Huffman coding generates the smallest possible number of code -- example: Symbol Probability 1 2 3 4 (source reduction) code A2 0.4 0.4 0.4 0.4 0.6 (code 0) 1 A6 0.3 0.3 0.3 0.3 0.4 (code 1) 00 A1 0.1 0.1 0.2 0.3 011 A4 0.1 0.1 0.1 0100 A3 0.06 0.1 01010 A5 0.04 01011

Coding System Example Lossless predictive coding Lossy predictive coding Transform coding -- Example of lossless predictive coding: Compressed image Symbol encoder Image Encode: Predictor Compressed image Symbol decoder Image Decode: Predictor

Coding System Example Transform coding Variable-length coding Image block DCT Quantizer Inverse Quantizer Inverse DCT Motion estimator Variable-length coding

Image Compression Quantization -- Map a large number of input amplitude levels to a small number of amplitude levels with non-recoverable loss of quality -- Why? Reduce the amplitude levels can reduce the number of bits to represent each pixel -- How: - scalar quantization (SQ) - vector quantization (VQ)

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression

Image Compression MPEG-4 TV/Film Computer MPEG4 Telecommunication Interactive multimedia GUI Virtual environment HDTV Audio/Graphics/Video data TV/Film Computer MPEG4 Telecommunication Wireless, internet, WWW. ISDN, Cable, …

Image Compression MPEG-4 -- video object plane (VOP): VOP1 VOP2 VOP3

Image Compression MPEG-4 -- Structure of video object plane (VOP) encoder: VOP0 coding VOP1 Coding : MUX bitstream Input VOP definition VOPn coding