Quantization and error Last updated on June 15, 2010 Doug Young Suh 8/30/2015.

Slides:



Advertisements
Similar presentations
Sampling and Pulse Code Modulation
Advertisements

Quantization Prof. Siripong Potisuk.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Newton’s Method Application to LMS Recursive Least Squares Exponentially-Weighted.
ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
CELLULAR COMMUNICATIONS 5. Speech Coding. Low Bit-rate Voice Coding  Voice is an analogue signal  Needed to be transformed in a digital form (bits)
Speech Coding Nicola Orio Dipartimento di Ingegneria dell’Informazione IV Scuola estiva AISV, 8-12 settembre 2008.
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
Spatial and Temporal Data Mining
SWE 423: Multimedia Systems Chapter 7: Data Compression (2)
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Fundamental of Wireless Communications ELCT 332Fall C H A P T E R 6 SAMPLING AND ANALOG-TO-DIGITAL CONVERSION.
Department of Computer Engineering University of California at Santa Cruz Data Compression (2) Hai Tao.
Nonlinear and Time Variant Signal Processing R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
SWE 423: Multimedia Systems Chapter 7: Data Compression (4)
Microcomputer Systems 1 Introduction to DSP’s. 9 August 2015Veton Këpuska2 Introduction to DSP’s  Definition: DSP – Digital Signal Processing/Processor.
EE513 Audio Signals and Systems Noise Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Speech coding. What’s the need for speech coding ? Necessary in order to represent human speech in a digital form Applications: mobile/telephone communication,
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
Chapter 7. Analog to Digital Conversion
Computer Vision – Compression(2) Hanyang University Jong-Il Park.
Speech Coding PCM DPCM ADPCM LPC CELP A road map Page 1 of 30
AUDIO COMPRESSION msccomputerscience.com. The process of digitizing audio signals is called PCM PCM involves sampling audio signal at minimum rate which.
Channel Coding Part 1: Block Coding
Speech Coding Submitted To: Dr. Mohab Mangoud Submitted By: Nidal Ismail.
Mathematical Preliminaries. 37 Matrix Theory Vectors nth element of vector u : u(n) Matrix mth row and nth column of A : a(m,n) column vector.
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.
Image Compression Supervised By: Mr.Nael Alian Student: Anwaar Ahmed Abu-AlQomboz ID: IT College “Multimedia”
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
Media signal Media format Last updated on June 15, 2010 Doug Young Suh
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
ECE 5525 Osama Saraireh Fall 2005 Dr. Veton Kepuska
Introduction to Digital Signals
Entropy Coding of Video Encoded by Compressive Sensing Yen-Ming Mark Lai, University of Maryland, College Park, MD
Dr. Sudharman K. Jayaweera and Amila Kariyapperuma ECE Department University of New Mexico Ankur Sharma Department of ECE Indian Institute of Technology,
PCM & DPCM & DM.
CS654: Digital Image Analysis
IT-101 Section 001 Lecture #9 Introduction to Information Technology.
Professors: Eng. Diego Barral Eng. Mariano Llamedo Soria Julian Bruno
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
EE 551/451, Fall, 2006 Communication Systems Zhu Han Department of Electrical and Computer Engineering Class 13 Oct. 3 rd, 2006.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
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.
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
RICO HARTONO JAHJA SOURCE CODING: PART IV.
Chapter 8 Lossy Compression Algorithms
EE599-2 Audio Signals and Systems
Chapter 4: Second generation Systems-Digital Modulation
Last updated on June 15, 2010 Doug Young Suh
CSI-447: Multimedia Systems
Digital Communications Chapter 13. Source Coding
Outline Introduction Signal, random variable, random process and spectra Analog modulation Analog to digital conversion Digital transmission through baseband.
LECTURE 07: TIME-DELAY ESTIMATION AND ADPCM
Advanced Wireless Networks
경희대학교 MediaLab 서 덕 영 Information theory 경희대학교 MediaLab 서 덕 영
Last update on June 15, 2010 Doug Young Suh
Context-based Data Compression
Scalar Quantization – Mathematical Model
Statistical Methods For Engineers
Linear Predictive Coding Methods
Speech coding.
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Presentation transcript:

Quantization and error Last updated on June 15, 2010 Doug Young Suh 8/30/2015

 amount of information = degree of surprise  Entropy and average code length  Information source and coding Memoryless source : no correlation 8/30/2015 Media Lab. Kyung Hee University 2 Entropy and compression Red blue yellow yellow red black red ∙∙∙∙∙ ∙∙∙

 Dice vs. coin  Effects of quantization Data compression Information loss, but not all 8/30/2015 Media Lab. Kyung Hee University 3 Fine-to-coarse Quantization 1/ {1,2,3}  head {4,5,6}  tail 1/2 H T ∙∙∙ H T H H T T ∙∙∙ quantization

 analog-to-digit-al quantization In order to cook in binary computers digital TV, digital comm., digital control…  fine-to-coarse digital quantization 8/30/2015 Media Lab. Kyung Hee University 4 Quantization ADC Infinite numbers finite numbers

 Digital Selectable accuracy : scale for human vs. gold [dynamic range, required accuracy, pdf]  open questions 1) Weights of soldiers are ranged from 50 kg to 100 kg, while that of new born baby is less than 5kg. 2) Voice signal of mobile phones is quantized in 8bits, while CD quality audio is quantized in 16bits. Why is 8bits enough for voice? 8/30/2015 Media Lab. Kyung Hee University 5 Quantization

Quantization/de-quantization 8/30/2015 Media Lab. Kyung Hee University 6  Representing values and error (-5kg ~ 5kg) x 1 =50.341kg, x 2 =67.271kg, x 3 =45.503kg, x 4 =27.91kg, … 

 Dynamic range of R, B bits  Step size Δ = R/2 B  Quantization noise power = E[e 2 ]  Noise in dB (log 10 2=3.01) Effect of 1 additional is 6.02dB 8/30/2015 Media Lab. Kyung Hee University 7 1/Δ -Δ/2 Δ/2 e probability

Effect of quantization in image 8/30/2015 Media Lab. Kyung Hee University 8 PSNR InfPSNR 25dB DCTQ IDCT Q -1 IDCT

Media signal pdf and quantization error  The narrower pdf, the less number of bits at the same error  The narrower pdf, the less error at the same number of bits  pdf (probability density function)

Media signal Non-uniform pdf  Variable step size  Less error  Fixed step size  More error

Media signal Error for fixed step size  Representing values at all intervals are -0.75, -0.25, 0.25, 0.75, respectively, then mean square errors become,

Media signal Error for variable step size  What representing value minimizes mean square error in each interval? For example, in the interval 00, the following equation is differentiated by p to find minimum.

 memory-less and memory I(x) = log 2 (1/p x ) = “degree of surprise”  qu-, re-, th-, -tion,  less uncertain Of course, there are exceptions... Qatar, Qantas  Conditional probability p(u|q) >> p(u) Then, I(u|q) << I(u) accordingly, I(n|tio) << I(n) 8/30/2015 Media Lab. Kyung Hee University 13 Correlation in text

Media signal Differential Pulse-Coded Modulation (DPCM)  Quantize not x [ n ] but d [ n ].  Principle : Pdf of d[n] is narrower than that of x [ n ]. Less error at the same number of bits. Less amount of data, at the same error. Prediction Quantize

 Histograms in images simple image complex image Effects of DPCM 8/30/2015 Media Lab. Kyung Hee University 15 x[n] Prob. x[n] d[n] 0 0 Pred Q H(D 1 )<H(D 2 ) Prob.

Media signal Differential Pulse-Coded Modulation (DPCM) Prediction Quantize One - Tap Prediction N – Tap Prediction

 Determine “a” which minimizes where R(1) is the auto-correlation for zero mean signal DPCM 8/30/2015 Media Lab. Kyung Hee University 17 time a ≈ 0 a > 0 a << 0

Media signal Adaptive DPCM  Prediction filter coefficients are estimated periodically and sent as side information. CDMA IS-95, CELP, EVRC (update interval 50 or 100 ms) LPC (linear predictive coding) Drawbacks 1. Correlation should be given and stationary. 2. Error propagation : needs refreshment  Open questions 1. Why is quantized difference used for prediction? 2. Will quantization noise be accumulated? 3. How often do we have to refresh? 4. How about non-stationary case?

 Trade-off between bit-rate and quality [dynamic range, accuracy, pdf]  Narrower pdf is preferred, w.r.t. H(X)  Prediction for narrower pdf Widely used in audio-video codecs Adaptation for better prediction Error propagation Summary 8/30/2015 Media Lab. Kyung Hee University 19