Computer Vision – Compression(2) Hanyang University Jong-Il Park.

Slides:



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

1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
SWE 423: Multimedia Systems
S. Mandayam/ DIP/ECE Dept./Rowan University Digital Image Processing / Fall 2001 Shreekanth Mandayam ECE Department Rowan University.
Spatial and Temporal Data Mining
SWE 423: Multimedia Systems Chapter 7: Data Compression (2)
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
S. Mandayam/ DIP/ECE Dept./Rowan University Digital Image Processing ECE /ECE Fall 2007 Shreekanth Mandayam ECE Department Rowan University.
Image Compression (Chapter 8)
CMPT 365 Multimedia Systems
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]
SWE 423: Multimedia Systems Chapter 7: Data Compression (4)
ELG5126 Source Coding and Data 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   
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
Speech coding. What’s the need for speech coding ? Necessary in order to represent human speech in a digital form Applications: mobile/telephone communication,
11. IMAGE COMPRESSION Introduction
CSE & CSE Multimedia Processing Lecture 7
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.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
Image Restoration AND Compression
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
Digital Image Processing
1 Multimedia Compression Algorithms Wen-Shyang Hwang KUAS EE.
Prof. Amr Goneid Department of Computer Science & Engineering
Chapter 8 Image Compression. What is Image Compression? Reduction of the amount of data required to represent a digital image → removal of redundant data.
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.
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.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Digital Image Processing Lecture 22: Image Compression
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
CS654: Digital Image Analysis
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Review of Basics Huffman coding run length coding Quantization.
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.
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.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Dr. Hadi AL Saadi Image Compression. Goal of Image Compression Digital images require huge amounts of space for storage and large bandwidths for transmission.
Computer Sciences Department1. 2 Data Compression and techniques.
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,
Image Compression (Chapter 8)
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
Compression & Huffman Codes
Digital Image Processing Lecture 20: Image Compression May 16, 2005
CSI-447: Multimedia Systems
Image Compression The still image and motion images can be compressed by lossless coding or lossy coding. Principle of compression: - reduce the redundant.
Discrete Cosine Transform
Context-based Data Compression
CMPT 365 Multimedia Systems
Objectives of Image Coding
Govt. Polytechnic Dhangar(Fatehabad)
Presentation transcript:

Computer Vision – Compression(2) Hanyang University Jong-Il Park

Department of Computer Science and Engineering, Hanyang University Topics in this lecture Practical techniques  Lossless coding  Lossy coding  Optimum quantization  Predictive coding  Transform coding

Department of Computer Science and Engineering, Hanyang University Lossless coding =Error-free compression =information-preserving coding General steps 1. Devising an alternative representation of the image in which its interpixel redundancies are reduced 2. Coding the representation to eliminate coding redundancies

Department of Computer Science and Engineering, Hanyang University Huffman coding Most popular coding (Huffman[1952]) Two step approach 1. To create a series of source reduction by ordering the probabilities of the symbols and combining the lowest probability symbols into a single symbol that replaces them in the next source reduction 2. To code each reduced source, starting with the smallest source and working back to the original source Instantaneous uniquely decodable block code  Optimal code for a set of symbols and probabilities subject to the constraint that the symbols be coded one at a time.

Department of Computer Science and Engineering, Hanyang University Eg. Huffman coding

Department of Computer Science and Engineering, Hanyang University Arithmetic coding Non-block code One-to-one correspondence between source symbols and code words does not exist.  an entire sequence of source symbols is assigned a single arithmetic code word. As the length of the sequence increases, the resulting arithmetic code approaches the bound established by the noiseless coding theorem. Practical limiting factors  The addition of the end-of-message indicator  The use of finite precision arithmetic

Department of Computer Science and Engineering, Hanyang University Eg. Arithmetic code 0.068

Department of Computer Science and Engineering, Hanyang University LZW coding Lempel-Ziv-Welch coding Assigning fixed-length code words to variable length sequences of source symbols but requires no a priori knowledge of the probability of occurrence of the symbols to be encoded Generating a dictionary(=codebook) as the encoding proceeds. The size of the dictionary is an important parameter. => trade-off Applied to GIF, TIFF, PDF format and many zip algorithm

Department of Computer Science and Engineering, Hanyang University Eg. LZW coding

Department of Computer Science and Engineering, Hanyang University 2D Run-length coding Relative address coding(RAC)

Department of Computer Science and Engineering, Hanyang University Lossless predictive coding Principle: De-correlating data by prediction = entropy reduction

Department of Computer Science and Engineering, Hanyang University Eg. Lossless predictive coding Histogram

Department of Computer Science and Engineering, Hanyang University Lossy compression Approaches  Predictive coding  Transform coding  Vector quantization  Etc. Significant data reduction compared with lossless compression at the expense of quality degradation

Department of Computer Science and Engineering, Hanyang University Lossy predictive coding Prevent error accumulation

Department of Computer Science and Engineering, Hanyang University Delta modulation(DM)

Department of Computer Science and Engineering, Hanyang University DPCM (Differential pulse code modulation) Optimal predictor: Try to minimize the mean-square of the prediction error subject to the constraint that and

Department of Computer Science and Engineering, Hanyang University Practical prediction Prediction for 2D Markov source Reduction of accumulated transmission error Typical predictors

Department of Computer Science and Engineering, Hanyang University Eg. Predictor AB CD

Department of Computer Science and Engineering, Hanyang University Optimal quantization Minimization of the mean-square quantization error:

Department of Computer Science and Engineering, Hanyang University Lloyd-Max quantizer Optimal quantizer in the mean-square sense Method  Reconstruction level: centroid  Decision level: halfway No explicit closed-form solutions for most pdfs An iterative design procedure is applied in many cases Optimum uniform quantizer  (uniform q.+VLC) outperforms (non-uniform q.+FLC)

Department of Computer Science and Engineering, Hanyang University Adaptive quantization Different quantization for each subimage(eg.block)  improved performance  increased complexity Eg. Four different quantizers: Scaled version of the same quantizer Notice: Substantial decrease in error BUT small improvement in compression ratio

Department of Computer Science and Engineering, Hanyang University Eg. DPCM vs. Adaptive DPCM DPCM Adaptive DPCM Substantial decrease in perceived error

Department of Computer Science and Engineering, Hanyang University Transform coding A reversible, linear transform is used Goal:  to decorrelate the pixels of each subimage, or  to pack as much information as possible into the smallest number of transform coefficients

Department of Computer Science and Engineering, Hanyang University Basis images: WHT

Department of Computer Science and Engineering, Hanyang University Basis images: DCT

Department of Computer Science and Engineering, Hanyang University Comparison: Energy compaction DFT WHT DCT Best performance KLT is optimal BUT it is image dependent! DCT is a good compromise!

Department of Computer Science and Engineering, Hanyang University DFT vs. DCT Less blocking artifact 2n-point periodicity

Department of Computer Science and Engineering, Hanyang University Effect of subimage size Complexity increases Performance enhances

Department of Computer Science and Engineering, Hanyang University Eg. Block size 2x2 8x8 4x4 Org. 25% reduction Error(8x8)

Department of Computer Science and Engineering, Hanyang University Bit allocation Zonal coding  Allocation of appropriate bits for each coefficient according to the statistics  Rate-distortion theory  Eg. Gaussian pdf Threshold coding  Global threshold  Local threshold  Fixed (N-largest coding)  constant rate  Variable  variable rate. Good performance

Department of Computer Science and Engineering, Hanyang University Zonal vs. Threshold

Department of Computer Science and Engineering, Hanyang University Eg. Zonal vs. Threshold Threshold  better zonal

Department of Computer Science and Engineering, Hanyang University Quantization table Different scaling for each coefficient. The same quantization curve for all coefficients. Z

Department of Computer Science and Engineering, Hanyang University Eg. Quality control by scaling Z 34:167:1

Department of Computer Science and Engineering, Hanyang University Wavelet coding New technique in 1990s Computationally efficient No subdivision  no blocking artifact Good performance!

Department of Computer Science and Engineering, Hanyang University Eg. Wavelet transform