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

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

Digital Image Representation Image Compression

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

Compression II: Images (JPEG)

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

Lecture 8 JPEG Compression (Part 3)

7.5 Dictionary-based Coding

JPEG: An Image Compression System

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

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

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

CMPT 365 Multimedia Systems. Media Compression - Image

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

CS 335 Graphics and Multimedia. Image Compression

Introduction ti to JPEG

Wireless Communication

Multimedia Communications. Transform Coding

COLOR IMAGE COMPRESSION USING DISCRETE COSINUS TRANSFORM (DCT)

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

Lecture 8 JPEG Compression (Part 3)

JPEG Modes of Operation. Nimrod Peleg Dec. 2005

Image Compression. CS 6640 School of Computing University of Utah

Lecture 5: Compression I. This Week s Schedule

Repetition 1st lecture

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

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

Image Compression Algorithm and JPEG Standard

compression and coding ii

Lecture 6 Introduction to JPEG compression

Lecture 6: Compression II. This Week s Schedule

Image Compression Standard: Jpeg/Jpeg 2000

DCT Based, Lossy Still Image Compression

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

IMAGE COMPRESSION. Chapter - 5 : (Basic)

VC 12/13 T16 Video Compression

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

An introduction to JPEG compression using MATLAB

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

Multimedia Signals and Systems Still Image Compression - JPEG

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

Stereo Image Compression

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

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

Digital Image Processing

Pyramid Coding and Subband Coding

Final Review. Image Processing CSE 166 Lecture 18

Digital Image Processing

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

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

Course Syllabus. Website Multimedia Systems, Overview

Video Compression An Introduction

Steganography using Odd-even Based Embedding and Compensation Procedure to Restore Histogram

IT Digital Image ProcessingVII Semester - Question Bank

Digital Video Processing

MRT based Fixed Block size Transform Coding

Pyramid Coding and Subband Coding

IMAGE COMPRESSION USING FOURIER TRANSFORMS

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

Mahdi Amiri. February Sharif University of Technology

CoE4TN4 Image Processing. Chapter 8 Image Compression

7: Image Compression

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

CMPT 365 Multimedia Systems. Media Compression - Video

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

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

CSEP 521 Applied Algorithms Spring Lossy Image Compression

Block-Matching based image compression

Lossless Image Compression having Compression Ratio Higher than JPEG

Media - Video Coding: Standards

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

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

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

CISC 7610 Lecture 3 Multimedia data and data formats

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

MULTIMEDIA COMMUNICATION

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

Robert Matthew Buckley. Nova Southeastern University. Dr. Laszlo. MCIS625 On Line. Module 2 Graphics File Format Essay

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Wavelet Transform (WT) & JPEG-2000

ROI Based Image Compression in Baseline JPEG

Forensic analysis of JPEG image compression

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

THE TRANSFORM AND DATA COMPRESSION HANDBOOK

Digital Image Processing

Sparse Transform Matrix at Low Complexity for Color Image Compression

Compression of Stereo Images using a Huffman-Zip Scheme

2.2: Images and Graphics Digital image representation Image formats and color models JPEG, JPEG2000 Image synthesis and graphics systems

Image Compression using Haar Wavelet Transform and Huffman Coding

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

Digital Image Representation. Image Representation. Color Models

JPEG Compression. What is JPEG?

10.2 Video Compression with Motion Compensation 10.4 H H.263

LOSSY COLOR IMAGE COMPRESSION BASED ON QUANTIZATION

Color Imaging Seminar. Yair Moshe

LETTER Improvement of JPEG Compression Efficiency Using Information Hiding and Image Restoration

JPEG compression with recursive group coding

Week 14. Video Compression. Ref: Fundamentals of Multimedia

International Journal of Research in Computer and Communication Technology, Vol 4, Issue 11, November- 2015

Video coding. Concepts and notations.

INF5063: Programming heterogeneous multi-core processors. September 17, 2010

Transcription:

Biomedical signal and image processing (Course 055-355-5501) Lect. 5. Principles of signal and image coding. Classification of coding methods. Generalized quantization, Epsilon-entropy Lossless and Lossy coding. Coding-decoding quality estimation: collective user vs expert user in biomedical applications 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 ; a k g a = N n= 1 n k n 2 ; { g n } arg min[ MathExp( k )] = ; 2 For N=1: g MathExp( a a ) MathExp( a ) 1 = k k 1 / k 1 Predictive coding methods: Delta-modulation, DPCM,multi-resolution, sub-band decomposition and wavelet coding. Transform methods: global, block-wise. Variety of Transforms.Blocking artifacts. Lapped transforms Hybrid bases in video coding; movement prediction 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; Statistical coding: Shannon-Fano-Haffmen coding; Coding of coordinates of sparse symbols, Run length coding; Coding with tracing contours. Coding color and stereoscopic images. Video coding. Additional literature on image coding: 1. J.S. Lim, Two-dimensional Signal and Image procesing, Prentice Hall, N.J.,1990 2. A. Murat-Tekamp, Digital Video Processing, Prentice Hall, N.J.,1995 3. R.J. Clarke, Digital Compression of Still Images and Video, Academic Press, London, 1996 Problems 1. Explain general quantization and basic principles of signal coding. 2. Explain principles of the design of DPCM coding; DPCM with feedback. 3. Formulate principles and give examples of transform coding methods. 4. Describe statistical coding methods you know. Home work: For an ECG test signal (ecg1024.mat), compute optimal weight coefficient for 1-D predictive coding

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 data compression methods

Input signal - Nonuniform quantizer Statistical encoder Compressed coded signal Predictor DPCM coding flow chart Compressed signal Statistical decoder Decompressed signal + Predictor DPCM decoding flow chart Input signal - Nonuniform quantizer Statistical encoder + Predictor Flow chart of DPCM with feedback coding

Input image: mean=182.8241, stdev=37.4671 Input image histogram 0.015 0.01 0.005 Horizontal differences: mean=0.333927, stdev=8.0463 0 0 50 100 150 200 250 Gray level Histogram of horiz. predict. error 0.3 0.2 0.1 0 0 50 100 150 200 250 Absolute value of the error Vertical differences: mean=0.417656, stdev=8.93394 0.4 Histogram of vert. predict. error 0.3 0.2 0.1 2-D prediction error: mean=0.525653, stdev=7.54791 0 0 50 100 150 200 250 Absolute value of the error Histogram of 2-D predict. error 0.3 0.2 0.1 0 0 50 100 150 200 250 Absolute value of the error

dpcm2d.m: Input image; stdnoise=0 Dpcm2D.m: Input image; stdnoise=0 dpcm2d.m: Input image; stdnoise=20 Output image, mxm=50; BPP=2.5 P=0.3 Output image, mxm=25; BPP=1 P=0.3 Output image, mxm=50; BPP=2.5 P=0.3 Coding/decoding error, STDerr=6.7234 Coding/decoding error, STDerr=15.9943 Coding/decoding error, STDerr=21.2588 dpcm2d.m: Input image; stdnoise=0 Output image, mxm=55; BPP=2 P=0.3 Coding/decoding error, STDerr=11.3159

Input signal samples Highest resolution Output signal samples 2 2 Wavelet decompo-sition coefficients 2 Lowest resolution Signal decomposition Signal reconstruction 2 Unit that performs signal low pass filtering and 2-fold decimation of signal samples Unit that performs signal 2-fold zooming and interpolation The principle of signal coding by sub-band decomposition

Initial (top) and low pass filtered and sub-sampled images Difference signals and lowest level sub-sampled image prepared for quantization and coding Image multi-resolution pyramid

Input image Image fragment 64x64 Fragment DFT spectrum Fragment DCT spectrum Fragment Walsh spectrum 1 DFT (red, Sumsp=0.34), DCT (cyan, Sumsp=0.26), Walsh (green, Sumsp=0.43), Haar (blue, Sumsp=0.42) Fragment Haar spectrum 0.9 0.8 n ts e e f ic i o c a l c tr d spe e e r d o r o f g y E ner 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 10 0 10 1 10 2 10 3 1.. WSzX*WSzY-1

Table of zonal quantization "DCT16" 250 200 150 100 50 Bit allocation table for DCT 16x16 block coding 8 7 6 5 3 3 2 2 2 1 1 1 1 1 0 0 7 6 5 4 3 3 2 2 1 1 1 1 1 0 0 0 6 5 4 3 3 2 2 2 1 1 1 1 1 0 0 0 5 4 3 3 3 2 2 2 1 1 1 1 1 0 0 0 3 3 3 3 2 2 2 1 1 1 1 1 0 0 0 0 3 3 2 2 2 2 2 1 1 1 1 1 0 0 0 0 2 2 2 2 2 2 1 1 1 1 1 0 0 0 0 0 2 2 2 2 1 1 1 1 1 1 1 0 0 0 0 0 2 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

JPEG CODING STANDARD (A.M. Tekalp, Digital Video Processing, Prentice Hall PTR, 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 matrix 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 Color images: R-G-B components are transformed into Luminance-chrominance space Y- Ch-Cb: Y = 0. 3R + 0. 6G + 0. 1B B Y Cr = + 0. 5 2 R Y Cb = + 0. 5 1. 6 Chrominance channels are subsampled by 2 in both directions. Obtained Y Cr and Cb components are JPEG coded individually

DCT image coding: Input image DCT image coding: Input image Restored image, SzW=8; SzMask=5 Q=4; P=0.2 Restored image, SzW=8; SzMask=5;Q=8; P=0.2 Restored image, SzW=8; SzMask=5;Q=4; P=0.2 Restoration error; std=10.5965; BPP=0.7 Restoration error; std=2.5088; BPP=0.94 Restoration error; std=5.0654; BPP=0.7