( ) ; For N=1: g 1. g n

Similar documents
Biomedical signal and image processing (Course ) Lect. 5. Principles of signal and image coding. Classification of coding methods.

JPEG: An Image Compression System. Nimrod Peleg update: Nov. 2003

CS 335 Graphics and Multimedia. Image Compression

Digital Image Representation Image Compression

Lecture 5: Compression I. This Week s Schedule

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

Compression II: Images (JPEG)

JPEG IMAGE CODING WITH ADAPTIVE QUANTIZATION

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy

JPEG: An Image Compression System

DCT Based, Lossy Still Image Compression

Lecture 8 JPEG Compression (Part 3)

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels

CMPT 365 Multimedia Systems. Media Compression - Image

Multimedia Communications. Transform Coding

Lecture 6: Compression II. This Week s Schedule

Introduction ti to JPEG

Wavelet Transform (WT) & JPEG-2000

Digital Video Processing

COLOR IMAGE COMPRESSION USING DISCRETE COSINUS TRANSFORM (DCT)

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

7.5 Dictionary-based Coding

Wireless Communication

JPEG. Wikipedia: Felis_silvestris_silvestris.jpg, Michael Gäbler CC BY 3.0

Media - Video Coding: Standards

Stereo Image Compression

VC 12/13 T16 Video Compression

Image Compression Algorithm and JPEG Standard

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

Lecture 8 JPEG Compression (Part 3)

Module 8: Video Coding Basics Lecture 42: Sub-band coding, Second generation coding, 3D coding. The Lecture Contains: Performance Measures

IMAGE COMPRESSION. Chapter - 5 : (Basic)

Video Compression Standards (II) A/Prof. Jian Zhang

IT Digital Image ProcessingVII Semester - Question Bank

Image Compression. CS 6640 School of Computing University of Utah

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

Pyramid Coding and Subband Coding

Lecture 6 Introduction to JPEG compression

IMAGE COMPRESSION. October 7, ICSY Lab, University of Kaiserslautern, Germany

Digital Image Processing

ISSN (ONLINE): , VOLUME-3, ISSUE-1,

Video Compression An Introduction

Repetition 1st lecture

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Image and Video Watermarking

Reversible Wavelets for Embedded Image Compression. Sri Rama Prasanna Pavani Electrical and Computer Engineering, CU Boulder

Chapter 10. Basic Video Compression Techniques Introduction to Video Compression 10.2 Video Compression with Motion Compensation

Contents. 3 Vector Quantization The VQ Advantage Formulation Optimality Conditions... 48

compression and coding ii

JPEG Modes of Operation. Nimrod Peleg Dec. 2005

CSEP 521 Applied Algorithms Spring Lossy Image Compression

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

Compression of Stereo Images using a Huffman-Zip Scheme

Multimedia Signals and Systems Still Image Compression - JPEG

Fundamentals of Video Compression. Video Compression

CoE4TN4 Image Processing. Chapter 8 Image Compression

PREFACE...XIII ACKNOWLEDGEMENTS...XV

Digital Image Processing

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia)

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

Overview: motion-compensated coding

Mesh Based Interpolative Coding (MBIC)

Pyramid Coding and Subband Coding

COMP 249 Advanced Distributed Systems Multimedia Networking. The Video Data Type Coding & Compression Basics

Interframe coding A video scene captured as a sequence of frames can be efficiently coded by estimating and compensating for motion between frames pri

An Intraframe Coding by Modified DCT Transform using H.264 Standard

Interframe coding of video signals

Block-Matching based image compression

An introduction to JPEG compression using MATLAB

5.1 Introduction. Shri Mata Vaishno Devi University,(SMVDU), 2009

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

Image Compression Standard: Jpeg/Jpeg 2000

Anatomy of a Video Codec

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

Using animation to motivate motion

CISC 7610 Lecture 3 Multimedia data and data formats

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding

Optimized Progressive Coding of Stereo Images Using Discrete Wavelet Transform

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Comparative Study of Partial Closed-loop Versus Open-loop Motion Estimation for Coding of HDTV

Computer and Machine Vision

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Image and Video Coding I: Fundamentals

SIGNAL COMPRESSION. 9. Lossy image compression: SPIHT and S+P

Multimedia Networking ECE 599

CHAPTER 4 REVERSIBLE IMAGE WATERMARKING USING BIT PLANE CODING AND LIFTING WAVELET TRANSFORM

LECTURE VIII: BASIC VIDEO COMPRESSION TECHNIQUE DR. OUIEM BCHIR

Course Syllabus. Website Multimedia Systems, Overview

THE TRANSFORM AND DATA COMPRESSION HANDBOOK

Digital Image Processing

MULTIMEDIA COMMUNICATION

A HYBRID DPCM-DCT AND RLE CODING FOR SATELLITE IMAGE COMPRESSION

Tutorial T5. Video Over IP. Magda El-Zarki (University of California at Irvine) Monday, 23 April, Morning

CHAPTER 6. 6 Huffman Coding Based Image Compression Using Complex Wavelet Transform. 6.3 Wavelet Transform based compression technique 106

Adaptive Quantization for Video Compression in Frequency Domain

Lecture Coding Theory. Source Coding. Image and Video Compression. Images: Wikipedia

MRT based Fixed Block size Transform Coding

Mahdi Amiri. February Sharif University of Technology

Transcription:

L. Yaroslavsky Course 51.7211 Digital Image Processing: Applications Lect. 4. Principles of signal and image coding. General principles General digitization. Epsilon-entropy (rate distortion function). Coding-decoding quality evaluation: collective user vs expert user. Lossless and Lossy coding. 3 step coding: discretization-element-wise-quantization- statistical coding. Discretization. Variety of bases. Global and block-wise transforms. Shift bases. Decorrelation by prediction: ε k = a k a k ; = N 2 AVimg ( a k a k 1 ) a k g na k n ; { g n } = arg min[ AV img ( ε k )] ; For N=1: g 1 = 2 n= 1 AV a DPCM, Delta-modulation. Coding/decoding artefacts. Orthogonal transform coding. Block coding. Blocking artefacts. Lapped transforms. Pyramid coding. Wavelet coding. Sub-band decomposition coding. Fractal coding. img ( ) 2-D and 3-D Hybrid bases. Element-wise quantization: uniform and non-uniform; homogeneous and inhomogeneous; zonal; adaptive. Combined discretization-quantization procedures: Vector quantization Adaptive discretization DPCM with feedback; DPCM with feedback and adaptive quantization; Adaptive coding methods: adaptive DPCM, adaptive transform coding (adaptive block size, basis pursuit, adaptive bit allocation). Statistical coding: - Shannon-Fano-Huffman coding; - Coding of coordinates of rare symbols. Run length coding. - Coding with tracing contours. Sensitivity of coding methods to channel noise Coding of multi component, color and stereoscopic images. Image coding standards, JPEG and JPEG2 standards. Video coding. Motion compensation MPEG standards. Questions for self-testing: 1. What are the basic principles of image compression? Compare compression for collective and expert users. 2. Characterize potential limits of data compression. What is lossless and lossy compression. 3. Describe DPCM without and with feedback, and methods for the predictor design. 4. Describe image block transform coding. Compare different transforms in terms of compression efficiency. 5. Describe quantization methods in image coding. 6. What is vector quantization and how it is related to general quantization? 7. Compare coding methods in terms their sensitivity to the channel noise. 8. Describe statistical coding methods and their implementations in image coding 9. How would you approach to multi component image coding? 1. Describe video coding with motion compensation. Additional reading on image coding: 1. R.J. Clarke, Digital Compression of Still Images and Video, Academic Press, London, 1996 2. M. Vetterli, J. Kovacevic, Wavelets and Subband Coding, Prentice Hall PTR, Englewood Cliffs, New Jersey, 1995 k 1

Claude Shannon (1916-21) C. Shannon, A Symbolic Analysis of Relay and Switching Circuits, Trans. Of the American Institute of Electrical Engineers, v. 57 (1938) (based on his Magister Degree Thesis, MIT) C. Shannon, A Mathematical Theory of Communication, Bell System Technical Journal, 27 (1948), No. 3, pp. 379-423, No. 4, pp. 623-656

CLASSIFICATION OF IMAGE COMPRESSION METHODS Linear transforms Predictive transforms: - Recursive - Multiresolution (image pyramid) decomposition and sub-sampling Element-wise quantization: - Nonuniform homogeneous - Zonal - Adaptive Orthogonal Transforms Frame-wise: - DFT - DCT - Walsh -Haar Block-wise: - DCT Binary statistical coding - Zig-zag scanning 2-D data - Variable length coding - Rare symbol coding (Run length coding; coding coordinate of rare symbols) Coded binary stream Hybrid predictive and orthogonal transforms Combined decorrelation/quantization: - DPCM with feedback - LZW coding - Adaptive discretization - Vector quantization Classification of digital image data compression methods

Variable length statistical coding An example of Huffman coding of 8 symbols A B C D E F G H P(A)= P(B)= P(C)= P(D)= P(E)= P(F)= Iteration.49.27.12.65.31.14 1-st - - - - - - 2-nd - - - - - 3-d - - - - 4-th - - - 5-th - - 6-th - P(G)= P(H)=.6.4 1 P(GH)=.1 1 P(FGH)=.24 1 P(EFGH)=.55 1 P(DEFGH)=.12 1 P(CDEFGH)=.24 1 P(BCDEFGH)=.51 7-th 1 Binary code 1 11 111 1111 11111 111111 1111111 Entropy H=1.9554 Average number of bits per symbol: 1.959 Coding of rare symbols: Run-length coding Coding of co-ordinates of rare symbols Coding by tracing connected components of patterns of rare symbols

Input signal Predictor Nonuniform quantizer Statistical encoder Compressed coded signal Bolck diagram of DPCM coding Compressed signal Statistical decoder Nonuniform de-quantizer Decompressed signal Block diagram of DPCM decoding Predictor Input signal Nonuniform quantizer Nonuniform de-quantizer Statistical encoder Predictor Block diagram of DPCM encoding with feedback Past samples c 1 =-.2 c 2 =-.3 c 1 =-.2 c 2 =-.3 Current pixel Future samples 2-D prediction for row-column scanning method

6 Prediction error statistics Input image histogram Histogram of horizontal differences 1 Input image; std=52.85 5 4 3 2 Horizontal differences; std=22.4565.8.6.4 1.2 1 2 3 Histogram of vertical differences 1 2 4 Histogram of 2-D prediction error 1 Vertical differences; std=17.269.8 2D prediction error; std=15.7492.8.6.6.4.4.2.2 2 4 2 4 14 Input image histogram Histogram of horizontal differences 1 Input image; std=31.499 12 1 8 Horizontal differences; std=11.864.8.6 6 4 2.4.2 1 2 3 Histogram of vertical differences 1 2 4 Histogram of 2-D prediction error 1 Vertical differences; std=13.993.8 2D prediction error; std=11.3133.8.6.6.4.4.2.2 2 4 2 4

Examples of DPCM image coding with P-th low of quantization of the prediction error Initial image DPCM_1D coded image; Q=7,mxm=1; P=.6; Std of the restoration error 7.35.6 Histogram of abs. value of the quantized prediction error; Entropy=2.528.5.4.3.2.1 1 2 3 Histogram of abs. value of the quantized prediction error. Entropy =2.5 DPCM_1D coded image; DPCM_1D coded image; Q=7,mxm=1; P=.6; Perr=.5;Std of the restoration error 13.5 DPCM: optimisation of the quantization dynamic range and nonlinearity index P

DPCM1D Dpcm2D-coded image, mxm=75, Q=7; P=.5.7 Histogram of abs. value of the quantized prediction error; Entropy=1.8816.6.5.4.3.2.1 1 2 3 Reconstruction error: StDev=4.9; PSNR=34.3 db Histogram of the prediction error abs. value, Entropy 1.88 Dpcm2D-coded image, mxm=75, Q=7; P=.5 Channel impulse noise Perr=.75 Impulse noise: Reconstruction error; StDev=1.75

DPCM2D Initial image.7 Dpcm2D-coded image, mxm=75, Q=7; P=.5 Histogram of the quant. predict. error abs. value; Entropy=1.7911.6.5.4.3.2.1 1 2 3 Reconstruction error: StDev=4.2;PSNR=35.6 db Histogram of the prediction error abs. value, Entropy 1.79 Dpcm2D-coded image, mxm=75, Q=7; P=.5 Channel impulse noise Perr=.75 Impulse noise: Reconstruction error; StDev=13.7

DPCM2D Initial image Dpcm2D-reconstructed image, mxm=5;q=5; P=.5; Histogram of the quant. predict. error abs. value; Entropy=1.57.8.7.6.5.4.3.2.1 1 2 Reconstruction error; StDev=3.2 Histogram of abs. Value of the reconstruction error Entropy 1 bpp

TRANSFORM BLOCK CODING Deviding image into nonoverlapping blocks Input image Computing orthogonal transform of blocks Transform coefficient quantization Converting 2-D array of coefficient s into 1-D sequence by means of Zigzag scanning Entropy coding Output binary string Principle of image transform coding Bit allocation table for DCT coding and average DCT power spectra of images Table of quantization 25 2 15 1 5 8 7 6 5 3 3 2 2 2 1 1 1 1 1 7 6 5 4 3 3 2 2 1 1 1 1 1 6 5 4 3 3 2 2 2 1 1 1 1 1 5 4 3 3 3 2 2 2 1 1 1 1 1 3 3 3 3 2 2 2 1 1 1 1 1 3 3 2 2 2 2 2 1 1 1 1 1 2 2 2 2 2 2 1 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Bit allocation table for DCT 16x16 block coding Lenna image and its average 16x16- DCT power spectrum

Examples of image DCT block coding with zonal quantization DCT image coding: Input image DCT image coding: Input image Restored image, SzW=8; SzMask=5; Q=4; P=.2 Restored image, SzW=8; SzMask=5;Q=8; P=.2 Restored image, SzW=8; SzMask=5;Q=4; P=.2 Restoration error; Std=1.6; PSNR=27.6 db; BPP=.7 Restoration error; StdErr=2.5; PSNR=4.2 db BPP=.94 Restoration error; StdErr=5; PSNR=34.2; BPP=.7

JPEG CODING STANDARD (after A.M. Tekalp, Digital Video Processing, Prentice Hall, Upper Saddle River, NJ, 1995): B/W images: Image is subdivided into 8x8 blocks; DC component is subtracted. 2-D DCT of each block is computed. The DCT coefficients are threshold coded using a quantization table and then reordered into 1-D sequence using zigzag scanning The nonzero AC quantized coefficients are Huffman coded; zero coefficients are run length coded. DC coefficient of each block is DPCM coded relative to the DCT coefficient of the previous block Signal Transformation Unit - DCT Quantizer Coefficient to Symbol Map Entropy Coder Lossy Coded data Tables 8x8 blocks of Input Image Quantization Table Coding Coding Tables Lossy Coded Data Tables Coding Tables Decoding Quantization Table Decoded Image Lossy Coded Data Entropy Decoder Coefficient to Symbol Map Inverse Quantizer IDCT Bit-Stream Block-diagrams of JPEG image coding and decoding

16 11 1 16 24 4 51 61 12 12 14 19 26 58 6 55 14 13 16 24 4 57 69 56 14 17 22 29 51 87 8 62 18 22 37 56 68 19 13 77 24 35 55 64 81 14 113 92 49 64 78 87 13 121 12 11 72 92 95 98 112 1 13 99 Intensity quantization table for 8x8 blocks and zig-zag scanning in JPEG coding Quantization rule: ˆ α r = round ( α r / w ~ r ), where Q 1 is a quality factor w ~ r = floor[ ( wr ScFactor + 5) 1] and 1, Q = 1 ScFactor = 2 2 * Q, 5 Q 99 5 Q, 1 Q 5 JPEG coding of colour images: R-G-B components are transformed into Luminance-Chrominance space Y- Cr-Cb: Y =. 3R +. 6G +. 1B Cr = ( B Y + 1) 2 Cb = ( R Y +.8) 1. 6 Chrominance channels are subsampled by 2 in both directions. Obtained Y, Cr and Cb components are JPEG coded individually

Multiresolution/pyramid/subband decomposition coding Input Quantization Output Low- Pass filter & down sampling Interpolation Interpolation Quantization Low- Pass filter & down sampling Interpolation Interpolation Quantization Low- Pass filter & down sampling Interpolation Quantization Interpolation ENCODER DECODER

VIDEO CODING with MOTION COMPENSATION 16pels 16pels INTRAFRAME CODING: DCT block coding INTERFAME CODING: - Evaluation of block motion vector; -Transmission of either motion vector or DCT coded block depending on the degree of the prediction mismatch Search area for determination of displacement of the block

Redundancy of stereoscopic images Original full resolution stereo pair Same stereo images, in which right image is 5x5 smoothed Color stereo pair in which left image is fully color and contrast saturated.

Anaglyph enhancement by means of blurring image red component Conventional anaglyph Enhanced anaglyph

Anaglyph enhancement by means of blurring image red component Conventional anaglyph Enhanced anaglyph