Predictive Coding. Prediction

Similar documents
Predictive Coding. Prediction Prediction in Images

Information and Entropy

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

Basic Principles of Video Coding

Multimedia Networking ECE 599

Lecture 7 Predictive Coding & Quantization

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

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

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

Compression methods: the 1 st generation

STATISTICS FOR EFFICIENT LINEAR AND NON-LINEAR PICTURE ENCODING

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

Digital Image Processing Lectures 25 & 26

6. H.261 Video Coding Standard

Pulse-Code Modulation (PCM) :

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

Rate-Constrained Multihypothesis Prediction for Motion-Compensated Video Compression

Transform Coding. Transform Coding Principle

Multimedia Communications. Differential Coding

Real-Time Audio and Video

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

Estimation-Theoretic Delayed Decoding of Predictively Encoded Video Sequences

Digital communication system. Shannon s separation principle

Quantization 2.1 QUANTIZATION AND THE SOURCE ENCODER

Chapter 10 Applications in Communications

Multimedia Communications. Scalar Quantization

Introduction to Video Compression H.261

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

CSE 408 Multimedia Information System Yezhou Yang

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

Waveform-Based Coding: Outline

BASICS OF COMPRESSION THEORY

Objectives of Image Coding

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

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

Image Data Compression

Compression and Coding

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

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

EE-597 Notes Quantization

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

ON SCALABLE CODING OF HIDDEN MARKOV SOURCES. Mehdi Salehifar, Tejaswi Nanjundaswamy, and Kenneth Rose

On Optimal Coding of Hidden Markov Sources

Wavelet Scalable Video Codec Part 1: image compression by JPEG2000

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

Modelling of produced bit rate through the percentage of null quantized transform coefficients ( zeros )

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

H.264/MPEG4 Part INTRODUCTION Terminology

Source Coding: Part I of Fundamentals of Source and Video Coding

Image Compression - JPEG

Image and Multidimensional Signal Processing

Source Coding for Compression

MODERN video coding standards, such as H.263, H.264,

EE5356 Digital Image Processing

Quality & Information Content Of CHRIS Hyper-Spectral Data

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

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

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

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

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

C.M. Liu Perceptual Signal Processing Lab College of Computer Science National Chiao-Tung University

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

h 8x8 chroma a b c d Boundary filtering: 16x16 luma H.264 / MPEG-4 Part 10 : Intra Prediction H.264 / MPEG-4 Part 10 White Paper Reconstruction Filter

Joint Source-Channel Coding Optimized On Endto-End Distortion for Multimedia Source

Detailed Review of H.264/AVC

MARKOV CHAINS A finite state Markov chain is a sequence of discrete cv s from a finite alphabet where is a pmf on and for

EE 5345 Biomedical Instrumentation Lecture 12: slides

CS578- Speech Signal Processing

A Study of Source Controlled Channel Decoding for GSM AMR Vocoder

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

Video Coding With Linear Compensation (VCLC)

BASIC COMPRESSION TECHNIQUES

Phase-Correlation Motion Estimation Yi Liang

LORD: LOw-complexity, Rate-controlled, Distributed video coding system

Transform coding - topics. Principle of block-wise transform coding

Motion Vector Prediction With Reference Frame Consideration

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

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

EE 121: Introduction to Digital Communication Systems. 1. Consider the following discrete-time communication system. There are two equallly likely

at Some sort of quantization is necessary to represent continuous signals in digital form

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

Quantization. Introduction. Roadmap. Optimal Quantizer Uniform Quantizer Non Uniform Quantizer Rate Distorsion Theory. Source coding.

Soft-Output Trellis Waveform Coding

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

CSE 126 Multimedia Systems Midterm Exam (Form A)

Reduce the amount of data required to represent a given quantity of information Data vs information R = 1 1 C

SYDE 575: Introduction to Image Processing. Image Compression Part 2: Variable-rate compression

Principles of Communications

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

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

EE5585 Data Compression April 18, Lecture 23

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

Decision-Point Signal to Noise Ratio (SNR)

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

THE newest video coding standard is known as H.264/AVC

Half-Pel Accurate Motion-Compensated Orthogonal Video Transforms

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

SPEECH ANALYSIS AND SYNTHESIS

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

Transcription:

Predictive Coding Prediction Prediction in Images Principle of Differential Pulse Code Modulation (DPCM) DPCM and entropy-constrained scalar quantization DPCM and transmission errors Adaptive intra-interframe DPCM Conditional Replenishment Thomas Wiegand: Digital Image Communication Predictive Coding - 1 Prediction Prediction is difficult especially for the future. Mark Twain Prediction: Statistical estimation procedure where future random variables are estimated/predicted from past and present observable random variables. Prediction from previous samples: Sˆ = f ( S1, S2,, S ) = N f ( Optimization criterion E Optimum : S {( ) } ˆ 2 S {[ (,,, )] } 2 S = E S f S1 S2 SN min S ˆ = E { S ( S, S,, S )} 1 2 N ) Thomas Wiegand: Digital Image Communication Predictive Coding - 2

Structure The optimum S ˆ = E S ( S1, S2,, SN ) canbestoredinatable(pixels:8bit size 2 8N ) Optimal linear prediction (zero mean, Gaussian RVs) S ˆ = a S + a S + + a S = a t 1 1 2 2 N N S Optimization criterion E 2 {( S Sˆ ) } = E ( S a S) t Optimum linear is solution of In case R S =E(SS t ) is invertible { } { } 2 { S S } t a t R S = E { S S} a = R 1 S E Thomas Wiegand: Digital Image Communication Predictive Coding - 3 Prediction in Images: Intra-frame Prediction Past and present observable random variables are prior scanned pixels within that image When scanning from upper left corner to lower right corner: B C D A X 1-D Horizontal prediction: A only 1-D Vertical prediction: C only Improvements for 2-D approaches (requires line store) P2 Q sˆ( xy, ) = apq (, ) sx ( py, q) p= P1 q= ( pq, ) (,) Thomas Wiegand: Digital Image Communication Predictive Coding - 4

Prediction Example: Test Pattern s[x,y] u H [x,y]= s[x,y]-.95 s[x-1,y] u V [x,y]= s[x,y]-.95 s[x,y-1] u D [x,y]=s[x,y]-.5(s[x,y-1]+ s[x-1,y]) Thomas Wiegand: Digital Image Communication Predictive Coding - 5 Prediction Example: Cameraman s[x,y] u H [x,y]= s[x,y]-.95 s[x-1,y] u D [x,y]=s[x,y]-.5(s[x,y-1]+ s[x-1,y]) u V [x,y]= s[x,y]-.95 s[x,y-1] Thomas Wiegand: Digital Image Communication Predictive Coding - 6

3 25 Change of Histograms: Cameraman Image signal x1 4 2 Prediction error signal (diag. pred.) 2 15 1 5 1.5 1.5 5 1 15 2 25-5 5 Can we use prediction for compression? Yes, if we reproduce the prediction signal at the decoder Thomas Wiegand: Digital Image Communication Predictive Coding - 7 Differential Pulse Code Modulation Coder input s e - quantizer e entropy coder Decoder output s ŝ + e entropy decoder channel ŝ Reconstruction error = Prediction error Reconstruction quantization error e = s sˆ s = e + sˆ s s = e e = q s + Thomas Wiegand: Digital Image Communication Predictive Coding - 8

DPCM and Quantization Prediction is based on quantized samples Stability problems for large quantization errors Prediction shapes error signal (typical pdfs: Laplacian, generalized Gaussian) Simple and efficient: combine with entropyconstrained scalar quantization Higher gains: Combine with block entropy coding Use a switched Forward adaptation (side information) Backward adaptation (error resilience, accuracy) DPCM can also be conducted for vectors Predict vectors (with side information) Quantize prediction error vectors Thomas Wiegand: Digital Image Communication Predictive Coding - 9 Comparison for Gauss-Markov Source: ρ=.9 SNR [db] 2 σ = 1log 1 D Linear order N=1, a=.9 Entropy-Constrained Scalar Quantizer with Huffman VLC Iterative design algorithm applied 35 3 25 2 15 1 5 R(D*), ρ=.9 DPCM & ECSQ Panter & Dite App Entropy-Constrained Opt. R [bits] 1 2 3 4 5 6 7 Thomas Wiegand: Digital Image Communication Predictive Coding - 1

DPCM with Entropy-Constrained Scalar Quantization Example: Lena, 8 b/p K=511, H=4.79 b/p K=15, H=1.98 b/p K=3, H=.88 b/p K...number of reconstruction levels, H...entropy Thomas Wiegand: Digital Image Communication Predictive Coding - 11 from: Ohm Transmission Errors in a DPCM System For a linear DPCM decoder, the transmission error response is superimposed to the reconstructed signal S' For a stable DPCM decoder, the transmission error response decays Finite word-length effects in the decoder can lead to residual errors that do not decay (e.g., limit cycles) Thomas Wiegand: Digital Image Communication Predictive Coding - 12

Transmission Errors in a DPCM System II Example: Lena, 3 b/p (fixed code word length) Error rate p=1-3. 1D pred., hor. a H =.95 1D pred., ver. a V =.95 2D pred.*,a H =a V =. 5 from: Ohm Thomas Wiegand: Digital Image Communication Predictive Coding - 13 Inter-frame Coding of Video Signals Inter-frame coding exploits: Similarity of temporally successive pictures Temporal properties of human vision Important inter-frame coding methods: Adaptive intra/inter-frame coding Conditional replenishment Motion-compensating prediction Motion-compensating interpolation Thomas Wiegand: Digital Image Communication Predictive Coding - 14

Principle of Adaptive Intra/Inter-Frame rame DPCM Predictor is switched between two states: for moving or changed areas. Intra-frame prediction for moving or changed areas. Inter-frame prediction (previous frame prediction) for still areas of the picture. S 22 S 23 S 24 4 ms S 22 S 23 S 24 S 2 S 3 S 4 S 21 S 2 S 25 S 1 S FRAME N - 1 FRAME N S 2 S 3 S 4 S 1 S S 21 S 2 S 25 FRAME N - 1 S ˆ FRAME N = a1 S1 + a2 S2 + a3 S3 + a4s4 ŝin ter = s' 2 Thomas Wiegand: Digital Image Communication Predictive Coding - 15 Intra/Inter-Frame rame DPCM: Adaptation Strategies, I Feedforward Adaptation s + e - s^ s^inter s^intra Quantizer Interframe Intraframe e' s' VLC VLC e' s^ s^inter s^intra Interframe Intraframe s' Predictor adaptation Intra/inter-frame Switching information Coder Decoder Thomas Wiegand: Digital Image Communication Predictive Coding - 16

Intra/Inter-Frame rame DPCM: Adaptation Strategies, II Feedback Adaptation s + e - s^ Quantizer e' VLC VLC e' s^ s' s^inter s^intra Inter-frame Intra-frame Predictor adaptation s' s^inter s^intra Inter-frame Intra-frame Predictor adaptation Coder Decoder Thomas Wiegand: Digital Image Communication Predictive Coding - 17 Principle of a Conditional Replenishment Coder SIGNAL INPUT CODING, ADDRESSING, BUFFERING TRANSMISSION CHANNEL BUFFERING, DECODING, ADDRESSING SIGNAL OUTPUT SEGMENTER (MOVEMENT DETECTOR) FRAME DELAY (1 PICTURE MEMORY) FRAME DELAY (1 PICTURE MEMORY) Coder Decoder Still areas: repeat from frame store Moving areas: transmit address and waveform Thomas Wiegand: Digital Image Communication Predictive Coding - 18

Change Detection Current frame + - Previous frame ABS Example of a pel-oriented change detector Average of 3x3 window Threshold Eliminate isolated points or pairs of points Example of a block-oriented change detector Decision changed/ unchanged Current frame Previous frame + - ABS Accumulate over NxN blocks Threshold Decision changed/ unchanged Thomas Wiegand: Digital Image Communication Predictive Coding - 19 The "Dirty Window" Effect Conditional replenishment scheme with change detection threshold set too high leads to the subjective impression of looking through a dirty window. Moving Area picked up by change detector Background Moving areas missed by change detector Thomas Wiegand: Digital Image Communication Predictive Coding - 2

Summary Prediction: Estimation of random variable from past or present observable random variables Optimal prediction Optimal linear prediction Prediction in images: 1-D vs. 2-D prediction DPCM: Prediction from previously coded/transmitted samples (known at coder and decoder) DPCM and quantization DPCM and transmission errors Adaptive Intra/Inter-frame DPCM: forward adaptation vs. backward adaptation Conditional Replenishment: Only changed areas of image are transmitted Thomas Wiegand: Digital Image Communication Predictive Coding - 21