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

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

Image Compression - JPEG

Multimedia Networking ECE 599

Image Data Compression

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

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

Wavelet Scalable Video Codec Part 1: image compression by JPEG2000

JPEG and JPEG2000 Image Coding Standards

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

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

Multiresolution image processing

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

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

BASICS OF COMPRESSION THEORY

EE67I Multimedia Communication Systems

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

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

Compression and Coding

Overview. Analog capturing device (camera, microphone) PCM encoded or raw signal ( wav, bmp, ) A/D CONVERTER. Compressed bit stream (mp3, jpg, )

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

Digital Image Processing

Real-Time Audio and Video

EBCOT coding passes explained on a detailed example

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

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

IMAGE COMPRESSION IMAGE COMPRESSION-II. Coding Redundancy (contd.) Data Redundancy. Predictive coding. General Model

Module 4 MULTI- RESOLUTION ANALYSIS. Version 2 ECE IIT, Kharagpur

Introduction to Wavelet. Based on A. Mukherjee s lecture notes

Image and Multidimensional Signal Processing

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

Basic Principles of Video Coding

6.003: Signals and Systems. Sampling and Quantization

<Outline> JPEG 2000 Standard - Overview. Modes of current JPEG. JPEG Part I. JPEG 2000 Standard

Digital communication system. Shannon s separation principle

Wavelets and Multiresolution Processing

Compression and Coding. Theory and Applications Part 1: Fundamentals

- An Image Coding Algorithm

EMBEDDED ZEROTREE WAVELET COMPRESSION

Image Compression Basis Sebastiano Battiato, Ph.D.

Compression and Coding. Theory and Applications Part 1: Fundamentals

Vector Quantization and Subband Coding

Module 4 MULTI- RESOLUTION ANALYSIS. Version 2 ECE IIT, Kharagpur

Multimedia & Computer Visualization. Exercise #5. JPEG compression

Transform Coding. Transform Coding Principle

Wavelets, Filter Banks and Multiresolution Signal Processing

Information and Entropy

Objectives of Image Coding

Waveform-Based Coding: Outline

Multiscale Image Transforms

ECE533 Digital Image Processing. Embedded Zerotree Wavelet Image Codec

Implementation of CCSDS Recommended Standard for Image DC Compression

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

Module 5 EMBEDDED WAVELET CODING. Version 2 ECE IIT, Kharagpur

repetition, part ii Ole-Johan Skrede INF Digital Image Processing

+ (50% contribution by each member)

Compressing a 1D Discrete Signal

A study of image compression techniques, with specific focus on weighted finite automata

Fast Progressive Wavelet Coding

Multimedia. Multimedia Data Compression (Lossless Compression Algorithms)

Lec 05 Arithmetic Coding

Compressing a 1D Discrete Signal

CSE 408 Multimedia Information System Yezhou Yang

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

Fault Tolerance Technique in Huffman Coding applies to Baseline JPEG

CMPT 365 Multimedia Systems. Final Review - 1

Basics of DCT, Quantization and Entropy Coding

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

Proyecto final de carrera

Scalable color image coding with Matching Pursuit

CSE 126 Multimedia Systems Midterm Exam (Form A)

Image compression. Institute of Engineering & Technology, Ahmedabad University. October 20, 2015

Basics of DCT, Quantization and Entropy Coding. Nimrod Peleg Update: Dec. 2005

Compression. What. Why. Reduce the amount of information (bits) needed to represent image Video: 720 x 480 res, 30 fps, color

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

Lec 04 Variable Length Coding (VLC) in JPEG

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

Multimedia Information Systems

Intelligent Visual Prosthesis

Source Coding for Compression

CHAPTER 3. Transformed Vector Quantization with Orthogonal Polynomials Introduction Vector quantization

UNIT I INFORMATION THEORY. I k log 2

JPEG Standard Uniform Quantization Error Modeling with Applications to Sequential and Progressive Operation Modes

Department of Electrical Engineering, Polytechnic University, Brooklyn Fall 05 EL DIGITAL IMAGE PROCESSING (I) Final Exam 1/5/06, 1PM-4PM

Digital Speech Processing Lecture 10. Short-Time Fourier Analysis Methods - Filter Bank Design

Lecture 10 : Basic Compression Algorithms

Digital Image Processing

Embedded Lossless Wavelet-Based Image Coder Based on Successive Partition and Hybrid Bit Scanning

Wavelets & Mul,resolu,on Analysis

Embedded Zerotree Wavelet (EZW)

Image Compression. Universidad Politécnica de Madrid Dr.-Ing. Henryk Richter

ECE472/572 - Lecture 13. Roadmap. Questions. Wavelets and Multiresolution Processing 11/15/11

ii Abstract Compression of digital images has been a topic of research for many years and a number of image compression standards has been created for

State of the art Image Compression Techniques

Progressive Wavelet Coding of Images

Introduction to Video Compression H.261

Inverse Problems in Image Processing

Chapter 7 Wavelets and Multiresolution Processing. Subband coding Quadrature mirror filtering Pyramid image processing

A Complete Video Coding Chain Based on Multi-Dimensional Discrete Cosine Transform

Transcription:

Image Compression

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

Method: Coding Redundancy Variable-Length Coding Interpixel Redundancy Run-Length Coding Predictive Coding Psychovisual Redundancy Lossly Coding 20-Fall LIST 3

Compression Ratio C R n n img cod n img : image sie n cod : code sie 20-Fall LIST 4

JPEG Joint Photographic Experts Group Image Compression Standard JPEG Lossy JPEG Lossless JPEG 2000 20-Fall LIST 5

Transformed Image Coding f Transform F Quantiation F q Lossless Coding Bit Allocation Lossless Decoding a Encoder Dequantiation F q Inverse Transform g b Decoder 20-Fall LIST 6

Linear Transform Energy compaction Optimal transformation Data independent basis 20-Fall LIST 7

Quantiation Quantiation is used only in lossy compression. Progressive quantiation Bit plane coding 20-Fall LIST 8

Bit Plane Coding 3-7 0 0 + + 0-4 -5 2 + - 0 0 0 + 0 0 6-2 + 0 0 0-0 + 0 MSB LSB 20-Fall LIST 9

Variable-Length Coding Higher-Probability Value Lower-Bit Code Gray Histogram Probability 20-Fall LIST 0

Entropy Coding Huffman code 00 0 0 0 0 0 0 Gray 0 2 3 4 5 6 7 Prob 0.9 0.25 0.2 0.6 0.08 0.06 0.03 0.02 0 0.05 0 0.40 0 0.60 0 0.35 0 0.9 0 0. 0.00 n cod =2*0.9+2*0.25+2*0.2+3*0.6 + 4*0.08+5*0.06+6*0.03+6*0.02 = 2.7 20-Fall LIST --

Code 00 0 0 0 0 0 0 Gray 0 2 3 4 5 6 7 Pixels:, 0,, 2,, 0, 2, 4, 3, 7, 6, 2, 0,... Codes : 0, 00, 0, 0, 0, 00, 0, 0, 0,, 0, 0, 00,... Code stream: 000000000000000... Decoding: 0,00,0,0,0,00,0,0,0,, 0,0,00... 20-Fall LIST -2-

Huffman Shift Coding p r r prefix symbol 20-Fall LIST 3

Arithmetic Coding Huffman coding : Symbol Code Symbol Sequence Code Stream Arithmetic Coding : Symbol Interval Symbol Sequence Subdivided real interval *0, 20-Fall LIST 4

Symbol Probability Subinterval a 0.2 [0.0, 0.2 a 2 0.2 [0.2, 0.4 a 3 0.4 [0.4, 0.8 a 4 0.2 [0.8,.0 a a 2 a 3 a 3 a 4 a 4 0.2 a 4 0.08 a 4 0.072 a 4 0.0688 a 4 0.0028 0.0688 a 4 a 3 a 2 a 3 a 2 0.04 a 3 a 2 0.06 a 3 a 2 0.0064 a 3 a 2 a 3 a 2 a 0.2 a a a a a 0 0 0.04 0.056 0.0624 0.06752 0.2 0.04 0.06 0.0064 0.0028 20-Fall LIST 5

Constant Area Coding a, a, a,..., a a, n n a : Symbol block of symbols Run-Length Coding 20-Fall LIST 6

D Run-Length Coding Symbol: 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 27, 27, 62, 62, 62, 62, 62, 62, 62, 62, Code: 0, 4, 5, 9, 27, 2, 62, 8 2D Run-Length Coding: 05 05 05 0 2 2 2 2 05 05 05 0 2 2 2 2 0 0 0 0 2 2 2 2 0 0 0 0 2 2 2 2 0 0 0 0 2 2 3 3 0 0 0 0 2 2 3 3 0 0 0 0 5 3 3 3 0 0 0 0 5 3 3 3 05 02 05 0 0 0 2 04 05 0 0 0 0 04 2 02 3 02 0 02 0 02 5 0 3 0 3 02 5 0 3 0 20-Fall LIST -7-

JPEG Encoding and Decoding Encoding 8x8 block DCT Quantiation Matrix DC Q DPCM DC Huffman AC Zig Zag Scan AC Huffman Decoding Code books DC Huffman AC Huffman IDPCM DC AC Q - IDCT 8x8 block 20-Fall LIST 8

JPEG Coding Example 0 20 30 40 50 60 20 40 60 64x64 0 20 30 40 50 60 20 40 60 Block DCT coefficients Decoded image 200 80 60 40 20 00 80 60 40 20 0-0 -8-6 -4-2 0 2 4 6 Histogram of AC coefficients 20-Fall LIST 9

JPEG Compression Standard DCT-based lossy compression

Sampling Y C C b r 0.299 0.47 0.65 0.587 0.289 0.55 0.4 0.436 0.00 R G B R,G,B Y, C r, C b 20-Fall LIST 2

Color Image 20-Fall LIST 22

Red Green Blue 4000 3500 3000 2500 2000 500 000 500 0 4000 3500 3000 2500 2000 500 000 500 0 4500 4000 3500 3000 2500 2000 500 000 500 0 0 50 00 50 200 250 0 50 00 50 200 250 0 50 00 50 200 250 20-Fall LIST 23

4000 3500 Y 5000 4500 C b 5000 C r 3000 2500 2000 4000 3500 3000 2500 4000 3000 500 2000 2000 000 500 500 000 500 000 0 0 0 0 50 00 50 200 250 0 50 00 50 200 250 0 50 00 50 200 250 20-Fall LIST 24

Original image RGB down-sampled image 20-Fall LIST 25

original Cb Down-sampled Cb 20-Fall LIST 26

Original Cr Down-sampled Cr 20-Fall LIST 27

Original Image Down-sampled Cb,Cr 20-Fall LIST 28

Down-sampled RGB Down-sampled Cb,Cr 20-Fall LIST 29

YUV YCbCr Subsampling 4:4:4 4:2:2 [Y0dc, Y0ac], [Cbdc, Cbac], [Crdc, Crac] [Y0dc, Y0ac] [Ydc, Yac], [Cbdc, Cbac], [Crdc, Crac] 20-Fall LIST 30

Digital Cosine Transform 20-Fall LIST 3 DC Coefficient / AC Coefficients 0 2 2 cos N x N u x x f u u C 0 2 2 cos N u N u x u C u x f 0 2 0 u N u N u 0 0 0 N x x f C

MCU: Minimum coded unit 20-Fall LIST 32

DCT Basic Functions 20-Fall LIST 33

8x8 2D DCT Basic Functions 20-Fall LIST 34

Quantiation F q u,v = Fu,v/Q uv Quantiation Table scale factor % 5000 Q 200 2* Q Q 50 50 Q 99 Q 00 20-Fall LIST 35

Encoding DC Difference Coding AC RLE, Huffman Encoding 20-Fall LIST 36

DC Y, Cb, Cr: difference encoding SIZE, AMPLITUDE SSSS DIFF 20-Fall LIST 37

20-Fall LIST 38

20-Fall LIST 39

20-Fall LIST 40

AC Y, C b, C r : Run-Length Encoding Cnt of 0 Bits Value 4 4 RRRR SSSS 20-Fall LIST 4

20-Fall LIST 42

20-Fall LIST 43

... 20-Fall LIST 44

... 20-Fall LIST 45

20-Fall LIST 46

20-Fall LIST 47

DCT DWT 20-Fall LIST 48

Crochiere et al in 976 Subband Coding Simple and powerful technique Subband Coding Signal Subband 2 Coding Subband n Coding 20-Fall LIST 49

Fourier basis functions exact frequency spatially no precise Subband basis frequency concentration spacially compact 20-Fall LIST 50

Band Splitting octave bands 20-Fall LIST 5

Aliasing distortion 20-Fall LIST 52

2-band encoder/decoder 20-Fall LIST 53

Lowpass subband 20-Fall LIST 54

Highpass subband 20-Fall LIST 55

Cancellation of aliasing Y G Y G Y 0 0 20-Fall LIST 56

20-Fall LIST 57 2 0 0 0 X H X H Y 2 X H X H Y 0 0 Y G Y G Y 2 2 0 0 0 0 X G H G H X G H G H Y

20-Fall LIST 58 0 0 0 G H G H 0 H G 0 H G 2 0 0 X H H H H Y 0 H H P 2 X P P Y

20-Fall LIST 59 m P P 2 if X Y m m n x n y e.g. 6 4 3 2 9 6 9 6 P

20-Fall LIST 60 3 2 3 2 0 3 3 4 3 3 4 H H 6 4 3 2 9 6 9 6 P 3 2 3 2 0 3 3 4 3 3 4 H H 2 4 3 2 0 2 2 2 6 2 8 H H

decomposition Wavelet transform X w a, b x t a, b t dt basis function: mother wavelet a, b t a, b t a t b a 20-Fall LIST 6

a, b t a t b a,0, b 2,0 0.5, 0 20-Fall LIST 62

20-Fall LIST 63

Scaling Wavelet Small scale -Rapidly changing details, -Like high frequency Large scale -Slowly changing details -Like low frequency 20-Fall LIST 64

Discrete wavelet transform DWT discretiation: x t X a, b m a a0 w a 0, m :integer a bandwidth bsampling for a 0 2, b 0 b nb a m 0 0 t m, nm, n m n x t m, n x t m, n t 20-Fall LIST 65

Multiresolution representation orthonormal set t n multireslution expansion n x t c t n n m/ 2 m m x t 2 c 2 t n m n n 20-Fall LIST 66

Harr wavelet: t 0 n c n n t 22t n 0 t scaling function: t otherwise c n 2 0 n 0, otherwise t 2t 2t t 0 2 t 2 t 20-Fall LIST 67

Harr scaling function Harr wavelet A x t 0 A x A j x t : approximationof x t at D j x t A x t j A j x t : detail t resolution of x t at j resolution j 20-Fall LIST 68

Wavelet transform and filter banks 20-Fall LIST 69 n n n n n t c t function synthesis scaling n t c t function analysisscaling 2 2 : 2 2 : n n n n n t d t synthesis wavelet n t d t analysiswavelet 2 2 : 2 2 :

analysis synthesis 20-Fall LIST 70

Wavelet filter design 20-Fall LIST 7 2 Q P n e.g. 2 4 2, Q n 4 2 4 P 2 4 3 2 0 2 2 2 6 2 8 H H

Multidimensional wavelet transform 20-Fall LIST 72

2-D Example LIST Lec4 Wavelet Coding [73]

JPEG 2000

20-Fall LIST 75

20-Fall LIST 76

20-Fall LIST 77

20-Fall LIST 78

20-Fall LIST 79

20-Fall LIST 80

20-Fall LIST 8

20-Fall LIST 82

20-Fall LIST 83

20-Fall LIST 84

20-Fall LIST 85

20-Fall LIST 86

20-Fall LIST 87

Quantiation: 20-Fall LIST 88

64x64, 32x32 20-Fall LIST 89

Embedded Block Coding encoding at bit-plane level context-based adaptive binary arithmetic coder significance propagation magnitude refinement clean-up 20-Fall LIST 90