Predictive Coding. Lossy or lossless. Feedforward or feedback. Intraframe or interframe. Fixed or Adaptive

Similar documents
Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Predictive Coding. Prediction Prediction in Images

Predictive Coding. Prediction

Scalar and Vector Quantization. National Chiao Tung University Chun-Jen Tsai 11/06/2014

BASICS OF COMPRESSION THEORY

Digital Image Processing Lectures 25 & 26

Basic Principles of Video Coding

Image Compression. Fundamentals: Coding redundancy. The gray level histogram of an image can reveal a great deal of information about the image

SIGNAL COMPRESSION. 8. Lossy image compression: Principle of embedding

EE5356 Digital Image Processing

Multimedia Networking ECE 599

Image Compression - JPEG

EE 5345 Biomedical Instrumentation Lecture 12: slides

encoding without prediction) (Server) Quantization: Initial Data 0, 1, 2, Quantized Data 0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256

CODING SAMPLE DIFFERENCES ATTEMPT 1: NAIVE DIFFERENTIAL CODING

Chapter 10 Applications in Communications

Pulse-Code Modulation (PCM) :

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

Lecture 2: Introduction to Audio, Video & Image Coding Techniques (I) -- Fundaments

Lecture 2: Introduction to Audio, Video & Image Coding Techniques (I) -- Fundaments. Tutorial 1. Acknowledgement and References for lectures 1 to 5

EE5356 Digital Image Processing. Final Exam. 5/11/06 Thursday 1 1 :00 AM-1 :00 PM

Information and Entropy

Vector Quantization Encoder Decoder Original Form image Minimize distortion Table Channel Image Vectors Look-up (X, X i ) X may be a block of l

Compression methods: the 1 st generation

Module 2 LOSSLESS IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Lecture 20: Quantization and Rate-Distortion

Run-length & Entropy Coding. Redundancy Removal. Sampling. Quantization. Perform inverse operations at the receiver EEE

Objectives of Image Coding

Digital communication system. Shannon s separation principle

Lecture 7 Predictive Coding & Quantization

ECE472/572 - Lecture 11. Roadmap. Roadmap. Image Compression Fundamentals and Lossless Compression Techniques 11/03/11.

Statistical Analysis and Distortion Modeling of MPEG-4 FGS

A WAVELET BASED CODING SCHEME VIA ATOMIC APPROXIMATION AND ADAPTIVE SAMPLING OF THE LOWEST FREQUENCY BAND

Multimedia Communications. Differential Coding

Intraframe Prediction with Intraframe Update Step for Motion-Compensated Lifted Wavelet Video Coding

Video Coding With Linear Compensation (VCLC)

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

Image and Multidimensional Signal Processing

On Compression Encrypted Data part 2. Prof. Ja-Ling Wu The Graduate Institute of Networking and Multimedia National Taiwan University

ANGLE OF OF ARRIVAL ESTIMATION WITH A POLARIZATION DIVERSE ARRAY

BASIC COMPRESSION TECHNIQUES

Introduction to Video Compression H.261

Rate-Constrained Multihypothesis Prediction for Motion-Compensated Video Compression

STATISTICS FOR EFFICIENT LINEAR AND NON-LINEAR PICTURE ENCODING

Rate-Distortion Based Temporal Filtering for. Video Compression. Beckman Institute, 405 N. Mathews Ave., Urbana, IL 61801

IMAGE COMPRESSION-II. Week IX. 03/6/2003 Image Compression-II 1

EE-597 Notes Quantization

Objective: Reduction of data redundancy. Coding redundancy Interpixel redundancy Psychovisual redundancy Fall LIST 2

Lloyd-Max Quantization of Correlated Processes: How to Obtain Gains by Receiver-Sided Time-Variant Codebooks

Review of Quantization. Quantization. Bring in Probability Distribution. L-level Quantization. Uniform partition

Image Compression Basis Sebastiano Battiato, Ph.D.

Estimation-Theoretic Delayed Decoding of Predictively Encoded Video Sequences

Wavelet Scalable Video Codec Part 1: image compression by JPEG2000

- An Image Coding Algorithm

v represents the uncertainties of the model. The observations are related

EE368B Image and Video Compression

On the optimal block size for block-based, motion-compensated video coders. Sharp Labs of America, 5750 NW Pacic Rim Blvd, David L.

Audio Coding. Fundamentals Quantization Waveform Coding Subband Coding P NCTU/CSIE DSPLAB C.M..LIU

A Framework for Adaptive Scalable Video Coding Using Wyner-Ziv Techniques

Multimedia & Computer Visualization. Exercise #5. JPEG compression

Optimizing Motion Vector Accuracy in Block-Based Video Coding

Lossless Image and Intra-frame Compression with Integer-to-Integer DST

Gaussian source Assumptions d = (x-y) 2, given D, find lower bound of I(X;Y)

CAP 5415 Computer Vision

ECE533 Digital Image Processing. Embedded Zerotree Wavelet Image Codec

Analysis of Rate-distortion Functions and Congestion Control in Scalable Internet Video Streaming

CSE 408 Multimedia Information System Yezhou Yang

Introduction p. 1 Compression Techniques p. 3 Lossless Compression p. 4 Lossy Compression p. 5 Measures of Performance p. 5 Modeling and Coding p.

Noise constrained least mean absolute third algorithm

Image Data Compression

A Video Codec Incorporating Block-Based Multi-Hypothesis Motion-Compensated Prediction

Compression. Encryption. Decryption. Decompression. Presentation of Information to client site

A DISTRIBUTED VIDEO CODER BASED ON THE H.264/AVC STANDARD

Real-Time Audio and Video

Lossy coding. Lossless coding. Organization: 12 h Lectures + 8 h Labworks. Hybrid coding. Introduction: generalities, elements of information theory

Module 4. Multi-Resolution Analysis. Version 2 ECE IIT, Kharagpur

Image Compression using DPCM with LMS Algorithm

RLE = [ ; ], with compression ratio (CR) = 4/8. RLE actually increases the size of the compressed image.

COMPRESSIVE (CS) [1] is an emerging framework,

4. Quantization and Data Compression. ECE 302 Spring 2012 Purdue University, School of ECE Prof. Ilya Pollak

Rate-distortion Analysis and Control in DCT-based Scalable Video Coding. Xie Jun

Image Compression. Qiaoyong Zhong. November 19, CAS-MPG Partner Institute for Computational Biology (PICB)

EE5585 Data Compression April 18, Lecture 23

PCM Reference Chapter 12.1, Communication Systems, Carlson. PCM.1

The information loss in quantization

1. Probability density function for speech samples. Gamma. Laplacian. 2. Coding paradigms. =(2X max /2 B ) for a B-bit quantizer Δ Δ Δ Δ Δ

on a per-coecient basis in large images is computationally expensive. Further, the algorithm in [CR95] needs to be rerun, every time a new rate of com

THE dictionary (Random House) definition of quantization

Chapter 2: Source coding

Lecture 5b: Line Codes

Principles of Communications

Multimedia Communications. Scalar Quantization

SCALABLE 3-D WAVELET VIDEO CODING

Continuity and Differentiability Worksheet

CAP 5415 Computer Vision Fall 2011

Implementation of CCSDS Recommended Standard for Image DC Compression

EE67I Multimedia Communication Systems

Run-length & Entropy Coding. Redundancy Removal. Sampling. Quantization. Perform inverse operations at the receiver EEE

LOSSLESS INTRA CODING IN HEVC WITH INTEGER-TO-INTEGER DST. Fatih Kamisli. Middle East Technical University Ankara, Turkey

INTERNATIONAL ORGANISATION FOR STANDARDISATION ORGANISATION INTERNATIONALE DE NORMALISATION ISO/IEC JTC1/SC29/WG11 CODING OF MOVING PICTURES AND AUDIO

Transcription:

Predictie Coding Predictie coding is a compression tecnique based on te difference between te original and predicted alues. It is also called DPCM Differential Pulse Code Modulation Lossy or lossless Feedforward or feedback Intraframe or interframe Fied or Adaptie

Histogram of a Digital Image and DPCM Errors Histogram of a digital image Histogram of DPCM errors

Lossless Predictie Coding Source Image data - Entropy Encoder Compressed Image data Predictor Compressed Image data Entropy Decoder Reconstructed Image data Predictor

Lossy Predictie Coding Feedforward m Predictor - e m ˆ m Q ê m Entropy Encoder ê m ê m Entropy Decoder ê m m ' ˆm' Predictor Predictor is based on input before Q. Any error introduced in Q can t be recoered.

Lossy Predictie Coding Feedback m e m ˆ m - Q ê m Entropy Encoder ê m Predictor m ' Feedback loop contains decoder. ê m ê m m ' Entropy Decoder ˆm' Predictor Predictor is based on input after Q. Any effect on quantization error is fed back to te input for adjustment. Hence preents te dc drift and accumulation of errors.

Comparison of Feedforward and Feedback Eample: Predictor: Use preious element for prediction. Quantizer: Use - at discontinuities. 5-2 - 2-5 Input Feedforward Feedback m m ˆm e m ê m ˆm' m ' ˆm e m ê m ˆm' m ' 0 00 00 00 02 2 20 3 20 4 20 5 8 6 8

Intraframe Prediction Coded piels ˆm m i 0 α i i ˆm Global prediction: fied for all images α i α i Local prediction: may ary from image to image α i Adaptie prediction: may ary witin an image

Predictor Optimization We need to minimize te epected alue of te squared prediction error. 2 2 0 e m i i i m E σ α 0 2 j e α σ, j0,,,m- 0 0 j m i i i m E α, j 0,,,m-

Predictor Optimization (continued) Assuming a gien image model (say Marko) wit auto-correlation function R k l, E [ k l ] 2 σ 2 k l were mean, σ 2 ariance, and are ertical and orizontal correlation coefficients respectiely, and k and l are ertical and orizontal displacements, we can determine accordingly. α i

Optimal Predictor Eample 0, 2, 2 σ m [ ], l k l k l k E R Ten [ ] [ ] 0,, 2 0 j E E j i i j i α α α 0 Tus ( ) ( ) 2 2 2 2 2 2 0, α α If, ten 2 0 α α ˆ 2 0

Optimal Predictor Eample 2 0, 3, 2 σ m [ ], l k l k l k E R Ten [ ] [ ] 2 0,,, 3 2 0 j E E j i i j i α α α α 2 0 Tus α α α 2 0,, 2 ˆ 3 0

B A C ˆm Typical Predictors ˆ m 0. 97 A, st order /-D ˆ m 0.50 A 0. 50C, 2 nd order /2-D ˆ m 0.90 A 0.8B 0. 90C, 3 rd order / 2-D

Types of DPCM Noise

Adaptie DPCM (ADPCM) Adaptie prediction Adaptie quantization Switcing of predictors or quantizers Adjustment of a parameter adaptiely

Block Diagram for Adaptie DPCM using Switced Quantization X n - - - - Quantizer Predictor Quantizer 2 Predictor Quantizer 3 Predictor Quantizer 4 Predictor - - - - Coder Error Coder 2 Error 2 Coder 3 Error 3 Coder 4 Error 4 Block Select Logic Coder Output Oeread

Lossy Predictie Coding Eamples DPCM Predictor: -D, ˆ m 0.97A; 2-D, ˆ m 0.75A-0.5B0.75C Quantizer: ADPCM Predictor: Lloyd-Ma (Laplacian, ariance matced wit differential inputs) wit, 2, and 3 bits Same as DPCM Quantizer: Same as DPCM wit 4 scaling factors of 0.5,.0,. 75, and 2.5 Switc among 4 quantizers oer a block of 0 piels Oeread bits 2 bits/0 piels 0.2 bpp

Lossy Predictie Coding Eamples (continued) LENA Tecnique Bit rate bits/piel RMSE (0-255) SNR (db) -D DPCM.00 8.67 22.7 -D DPCM 2.00 9.44 28.63 -D DPCM 3.00 5. 33.96 2-D DPCM.00 4.58 27.74 2-D DPCM 2.00 6.93 3.32 2-D DPCM 3.00 3.7 36.74 -D ADPCM.20 0.9 27.37 -D ADPCM 2.20 4.37 35.32 -D ADPCM 3.20 2.6 4.44 2-D ADPCM.20 7.84 30.24 2-D ADPCM 2.20 2.87 38.97 2-D ADPCM 3.20.37 45.40

DPCM at.00 bit/piel

DPCM at 2.00 bits/piel

DPCM at 2.00 bits/piel (magnified) Original Encoded

DPCM at 3.00 bits/piel

ADPCM at.20 bits/piel

ADPCM at 2.20 bits/piel

ADPCM at 3.20 bits/piel

2-D ADPCM Hardware Compleity Encoder 4 ( 3 multiplications 5 additions P comparisons )/piel Were P, 2, or 3 assuming binary tree operation for te quantizer. Decoder ( 3 multiplication 3 additions )/piel Applying tis algoritm to CIF ( 30 fps ) requires approimately ( assuming P 2 on aerage ) 4 0 288 352.5 30 82 MIPS for a real-time encoding

Intraframe Transform/Predictie Coding u i -D DCT i e i ˆi - Q e i Entropy Encoder ê i Predictor Line Memory i ' ê i Entropy Decoder e i i ' -D IDCT u i ' ˆi Predictor Line Memory

Formulation i Cu i e i i ˆi u ij strip k L pels wide i ' ˆi e i Use preious row as predictor ˆi i u i ' C T i ' Use Lloyd-Ma quantizer, fied or adaptie

Head Scene

Coding performance L32, for adaptie case, te MSV s of te differential alues in eac strip were measured and used to design L loyd-ma quantizers.

Obserations PSNR increases as bpp increases Adaptie sceme works for Head but not for Scene Rate of improement in PSNR decrease after bpp for te case of Head -D DCT/DPCM is comparable to 2-D DCT Oter forms and combinations are possible

Additional Reference A. N. Netraali and B. G. Haskell, Digital Pictures Representation and Compression, Plenum Press, 988, pp. 449-452