The Johns Hopkins University

Slides:



Advertisements
Similar presentations
Multimedia Data Compression
Advertisements

Chapter 3: Pulse Code Modulation
Sampling and Pulse Code Modulation
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Quantization Prof. Siripong Potisuk.
CSE 589 Applied Algorithms Spring 1999 Image Compression Vector Quantization Nearest Neighbor Search.
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
2015/6/15VLC 2006 PART 1 Introduction on Video Coding StandardsVLC 2006 PART 1 Variable Length Coding  Information entropy  Huffman code vs. arithmetic.
Spatial and Temporal Data Mining
Lecture 7: Spring 2009 Lossless Compression Algorithms
SWE 423: Multimedia Systems Chapter 7: Data Compression (2)
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Lattices for Distributed Source Coding - Reconstruction of a Linear function of Jointly Gaussian Sources -D. Krithivasan and S. Sandeep Pradhan - University.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
2015/7/12VLC 2008 PART 1 Introduction on Video Coding StandardsVLC 2008 PART 1 Variable Length Coding  Information entropy  Huffman code vs. arithmetic.
SWE 423: Multimedia Systems Chapter 7: Data Compression (4)
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Pulse Modulation 1. Introduction In Continuous Modulation C.M. a parameter in the sinusoidal signal is proportional to m(t) In Pulse Modulation P.M. a.
Speech coding. What’s the need for speech coding ? Necessary in order to represent human speech in a digital form Applications: mobile/telephone communication,
Fundamentals of Digital Communication
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
Quantization Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated
1 Multimedia Compression Algorithms Wen-Shyang Hwang KUAS EE.
CMPT 365 Multimedia Systems
CE Digital Signal Processing Fall 1992 Waveform Coding Hossein Sameti Department of Computer Engineering Sharif University of Technology.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
1 PCM & DPCM & DM. 2 Pulse-Code Modulation (PCM) : In PCM each sample of the signal is quantized to one of the amplitude levels, where B is the number.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
Chapter 8 Image Compression. Portable bit map Family (BMP, Lena 66,616B) Graphics interchange Format (GIF, Lena 70,458B) Tag image file format (TIFF/TIF,
PCM & DPCM & DM.
Vector Quantization CAP5015 Fall 2005.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
JPEG.
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.
Meghe Group of Institutions
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
Signal Prediction and Transformation Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
Sistem Telekomunikasi, Sukiswo, ST, MT Sukiswo
Chapter 8 Lossy Compression Algorithms
Image Compression (Chapter 8)
JPEG Compression What is JPEG? Motivation
Data Transformation: Normalization
CSI-447: Multimedia Systems
Algorithms in the Real World
Principios de Comunicaciones EL4005
Analog to digital conversion
Discrete Cosine Transform
Chapter 3 Sampling.
Quantization and Encoding
2018/9/16 Distributed Source Coding Using Syndromes (DISCUS): Design and Construction S.Sandeep Pradhan, Kannan Ramchandran IEEE Transactions on Information.
Introduction to data converters
Scalar Quantization – Mathematical Model
Introduction to data converters
Objectives of Image Coding
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Chapter 3: Pulse Code Modulation
لجنة الهندسة الكهربائية
A Data Hiding Scheme Based Upon Block Truncation Coding
PCM & DPCM & DM.
Speech coding.
Foundation of Video Coding Part II: Scalar and Vector Quantization
Conceptual Representation of A/D Conversion
CMPT 365 Multimedia Systems
Presentation transcript:

The Johns Hopkins University Quantization Trac D. Tran ECE Department The Johns Hopkins University Baltimore, MD 21218

Outline Review Quantization Nonlinear mapping Forward and inverse quantization Quantization errors Clipping error Approximation error Error model Optimal scalar quantization Examples

Reminder original signal compressed bit-stream reconstructed signal Information theory VLC Huffman Arithmetic Run-length Quantization

Quantization Entropy coding techniques Quantization Perform lossless coding No flexibility or trade-off in bit-rate versus distortion Quantization Lossy non-linear mapping operation: a range of amplitude is mapped to a unique level or codeword Approximation of a signal source using a finite collection of discrete amplitudes Controls the rate-distortion trade-off Applications A/D conversion Compression

Typical Quantizer Q Forward Quantizer x y input output y 111 110 101 000 001 010 011 100 quantization level or codeword clipping/overflow quantization cell/bin/interval x decision boundaries clipping/overflow

Typical Inverse Quantizer Typical reconstruction Quantization error y x Q Inverse Quantizer ^ -1 y 111 110 101 100 011 010 001 000 x clipping, overflow decision boundaries

Mid-rise versus Mid-tread y y x x Uniform Midrise Quantizer Uniform Midtread Quantizer Popular in ADC For a b-bit midrise Popular in compression For a b-bit midtread

Quantization Errors Approximation error Clipping error Lack of quantization resolution, too few quantization levels, too large quantization step-size Causes staircase effect Solution: increases the number of quantization levels, and hence, increase the bit-rate Clipping error Inadequate quantizer range limits, also known as overflow Solution Requires knowledge of the input signal Typical practical range for a zero-mean signal

Quantization: Error Model Assumptions: x Q ^ -1 + x ^ Quantization error: Mean-squared distortion measure:

Quantization Error Variance + x ^ would like to minimize

Uniform Quantization – Bounded Input y x b-bit Quantizer x q q high bit-rate assumption

Uniform Quantization – Bounded Input x q q b-bit quantizer high bit-rate assumption

Signal-to-Noise Ratio Definition of SNR in decibel (dB) power of the signal power of the noise For quantization noise Suppose that we now add 1 more bit to our Q resolution:

Example Design a 3-bit uniform quantizer for a signal with range [0,128] Maximum possible number of levels: Quantization stepsize: Quantization levels: Reconstruction levels: Maximum quantization error:

Example of Popular Quantization Round Floor Ceiling y x Uniform midtread quantizer from Round and Floor

Quantization from Rounding y –14 –10 –6 –2 2 6 10 14 x Uniform Quantizer, step-size=4

Dead-zone Scalar Quantization The bin size around zero is doubled Other bins are still uniform Create more zeros Useful for image/video Output ∆ 2∆ 3∆ Input -3∆ -2∆ -∆ 3.5∆ 2.5∆ 1.5∆ -1.5∆ -2.5∆ -3.5∆ Quantization mapping: De-quantization mapping: -2∆ -∆ 2∆ ∆ x

Non-Uniform Quantization Uniform quantizer is not optimal if source is not uniformly distributed For given M, to reduce MSE, we want narrow bin when f(x) is high and wide bin when f(x) is low f(x) x

Optimal Scalar Quantization Problem Statement: Optimal Encoder for a Given Decoder: Notes: Non-uniform quantizer under consideration Reconstruction can be anywhere, not necessarily the center of the interval

Optimal Scalar Quantization Fundamental Theorem of Calculus Nearest Neighbor Rule

Optimal Scalar Quantization Optimal Decoder for a Given Encoder: Centroid Rule

Lloyd-Max Quantizer Main idea [Lloyd 1957] [Max 1960] Assumptions solving these 2 equation iteratively until D converges Assumptions Input PDF is known and stationary Entropy has not been taken into account Nearest Neighbor Partitioning Centroid Computation Input Codebook Updated Codebook index of m-th iteration

Example y –b –a x a b x

Example y –b –a x a b x

Embedded Quantization ^ x y x -1 Q Q x S MSB LSB F1 F2 y Discard N integer bit planes + all fractional bit planes Also called bit-plane quantization, progressive quantization Most significant information is transmitted first JPEG2000 quantization strategy

Embedded Quantization R = 1 R = 2 R = 3

Embedded Forward Quantization y 16 12 8 –16 –12 –8 4 –4 x Dead Zone Embedded Quantizer, N=2

Embedded Inverse Quantization 1 X 1 Truncate 4 bit planes X 1 Receive 1 refinement bit X 1 Receive 2 refinement bits Original symbol x = 22 Range=[16, 32) Range=[16, 24) Range=[20, 24) ^ ^ ^ x = 24 x = 20 = 24 – 4 x = 22 = 20 + 2 N-bit-plane truncation = scalar quantization with

Vector Quantization n-dimensional generalization of scalar quantizer Nearest neighbor and centroid rule still apply n-dimensional input vectors codebook, containing code-vectors or codewords Vector Q Separable Scalar Q