EE465: Introduction to Digital Image Processing1 Data Compression Techniques Text: WinZIP, WinRAR (Lempel-Ziv compression’1977) Image: JPEG (DCT-based),

Slides:



Advertisements
Similar presentations
JPEG Compresses real images Standard set by the Joint Photographic Experts Group in 1991.
Advertisements

Chapter 7 End-to-End Data
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Image (and Video) Coding and Processing Lecture: DCT Compression and JPEG Wade Trappe Again: Thanks to Min Wu for allowing me to borrow many of her slides.
JPEG Still Image Data Compression Standard
Hao Jiang Computer Science Department Sept. 27, 2007
Case Study ARM Platform-based JPEG Codec HW/SW Co-design
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
CS430 © 2006 Ray S. Babcock Lossy Compression Examples JPEG MPEG JPEG MPEG.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Still Image Conpression JPEG & JPEG2000 Yu-Wei Chang /18.
Lossy Image Compression
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Lossy Compression Based on spatial redundancy Measure of spatial redundancy: 2D covariance Cov X (i,j)=  2 e -  (i*i+j*j) Vertical correlation   
Chapter 2 Source Coding (part 2)
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
JPEG Motivations: Motivations: 1.Uncompressed video and audio data are huge. In HDTV, the bit rate easily exceeds 1 Gbps. --> big problems for.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Klara Nahrstedt Spring 2011
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
EE591U Wavelets and Filter Banks Copyright Xin Li Roadmap to Lossy Image Compression JPEG standard: DCT-based image coding First-generation wavelet.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Multimedia Data DCT Image Compression
Indiana University Purdue University Fort Wayne Hongli Luo
JPEG CIS 658 Fall 2005.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
Outline Kinds of Coding Need for Compression Basic Types Taxonomy Performance Metrics.
Compression There is need for compression: bandwidth constraints of multimedia applications exceed the capability of communication channels Ex. QCIF bit.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014.
The JPEG Standard J. D. Huang Graduate Institute of Communication Engineering National Taiwan University, Taipei, Taiwan, ROC.
JPEG - JPEG2000 Isabelle Marque JPEGJPEG2000. JPEG Joint Photographic Experts Group Committe created in 1986 by: International Organization for Standardization.
JPEG (Joint Photographic Expert Group)
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Introduction to JPEG m Akram Ben Ahmed
EE465: Introduction to Digital Image Processing1 Lossy Image Compression: a Quick Tour of JPEG Coding Standard Why lossy for grayscale images?  Tradeoff.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 7 ECEC 453 Image Processing Architecture Lecture 8, February 5, 2004 JPEG: A Standard.
JPEG. Introduction JPEG (Joint Photographic Experts Group) Basic Concept Data compression is performed in the frequency domain. Low frequency components.
By Dr. Hadi AL Saadi Lossy Compression. Source coding is based on changing of the original image content. Also called semantic-based coding High compression.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
MP3 and AAC Trac D. Tran ECE Department The Johns Hopkins University Baltimore MD
JPEG Compression What is JPEG? Motivation
IMAGE PROCESSING IMAGE COMPRESSION
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
Digital Image Processing Lecture 21: Lossy Compression May 18, 2005
JPEG Image Coding Standard
Discrete Cosine Transform
JPEG.
CMPT 365 Multimedia Systems
JPEG Pasi Fränti
JPEG Still Image Data Compression Standard
The JPEG Standard.
Image Coding and Compression
Fundamentals of Video Compression
Presentation transcript:

EE465: Introduction to Digital Image Processing1 Data Compression Techniques Text: WinZIP, WinRAR (Lempel-Ziv compression’1977) Image: JPEG (DCT-based), BMP (run- length coding) Video: VCD/DVD (MPEG), Real Player/Windows Media Player (H.263/H.264), BluRay Audio and Speech: MP3, G.728 (CELP)

EE465: Introduction to Digital Image Processing2 Lossless vs. Lossy Compression One is original and the other is compressed, which one is original? Mathematical lossy can still be visually lossless

EE465: Introduction to Digital Image Processing3 Engineering is About Design and Implementation cost performance Product A Product B

EE465: Introduction to Digital Image Processing4 A Tour of JPEG Coding Algorithm Flow-chart diagram of DCT-based coding algorithm specified by Joint Photographic Expert Group (JPEG) TQ C

EE465: Introduction to Digital Image Processing5 First Building Block: 8-by-8 DCT i j DC T

EE465: Introduction to Digital Image Processing6 Transform Coding of Images Why not transform the whole image together?  Require a large memory to store transform matrix  It is not a good idea for compression due to spatially varying statistics within an image Idea of partitioning an image into blocks  Each block is viewed as a smaller-image and processed independently  It is not a magic, but a compromise

EE465: Introduction to Digital Image Processing7 Block Processing under MATLAB Type “help blkproc” to learn the usage of this function  B = BLKPROC(A,[M N],FUN) processes the image A by applying the function FUN to each distinct M-by-N block of A, padding A with zeros if necessary. Example I = imread('cameraman.tif'); fun J = blkproc(I,[8 8],fun);

EE465: Introduction to Digital Image Processing8 Block-based DCT Example J I note that white lines are artificially added to the border of each 8-by-8 block to denote that each block is processed independently

EE465: Introduction to Digital Image Processing9 Boundary Padding padded regions Example When the width/height of an image is not the multiple of 8, the boundary is artificially padded with repeated columns/rows to make them multiple of 8

EE465: Introduction to Digital Image Processing10 Work with a Toy Example Any 8-by-8 block in an image is processed in a similar fashion

EE465: Introduction to Digital Image Processing11 Encoding Stage I: Transform Step 1: DC level shifting 128 (DC level) _

EE465: Introduction to Digital Image Processing12 Step 2: 8-by-8 DCT Encoding Step 1: Transform (Con’t) 8  8 DCT

EE465: Introduction to Digital Image Processing13 Second Building Block: Quantization Q-table : specifies quantization stepsize (see slide #28) Notes:  Q-table can be specified by customer  Q-table is scaled up/down by a chosen quality factor  Quantization stepsize Q ij is dependent on the coordinates ( i,j ) within the 8-by-8 block  Quantization stepsize Q ij increases from top-left to bottom-right

EE465: Introduction to Digital Image Processing14 Encoding Stage II: Quantization (Con’t) Example f x ij s ij

EE465: Introduction to Digital Image Processing15 The Third Building Block: Entropy Coding Zigzag Scan (20,5,-3,-1,-2,-3,1,1,-1,-1, 0,0,1,2,3,-2,1,1,0,0,0,0,0, 0,1,1,0,1,EOB) zigzag scan End Of the Block: All following coefficients are zero

EE465: Introduction to Digital Image Processing16 Run-length Coding (20,5,-3,-1,-2,-3,1,1,-1,-1,0,0,1,2,3,-2,1,1,0,0,0,0,0,0,1,1,0,1,EOB) DC coefficient AC coefficient - DC coefficient : DPCM coding - AC coefficient : run-length coding (run, level) (5,-3,-1,-2,-3,1,1,-1,-1,0,0,1,2,3,-2,1,1,0,0,0,0,0,0,1,1,0,1,EOB) (0,5),(0,-3),(0,-1),(0,-2),(0,-3),(0,1),(0,1),(0,-1),(0,-1),(2,0),(0,1), (0,2),(0,3),(0,-2),(0,1),(0,1),(6,0),(0,1),(0,1),(1,0),(0,1),EOB Huffman coding encoded bit stream

EE465: Introduction to Digital Image Processing17 JPEG Decoding Stage I: Entropy Decoding (20,5,-3,-1,-2,-3,1,1,-1,-1,0,0,1,2,3,-2,1,1,0,0,0,0,0,0,1,1,0,1,EOB) Huffman decoding encoded bit stream AC coefficients DC coefficient DPCM decoding (0,5),(0,-3),(0,-1),(0,-2),(0,-3),(0,1),(0,1),(0,-1),(0,-1),(2,0),(0,1), (0,2),(0,3),(0,-2),(0,1),(0,1),(6,0),(0,1),(0,1),(1,0),(0,1),EOB encoded bit stream

EE465: Introduction to Digital Image Processing18 JPEG Decoding Stage II: Inverse Quantization (20,5,-3,-1,-2,-3,1,1,-1,-1,0,0,1,2,3,-2,1,1,0,0,0,0,0,0,1,1,0,1,EOB) zigzag f -1

EE465: Introduction to Digital Image Processing19 JPEG Decoding Stage III: Inverse Transform 8  8 IDCT 128 (DC level) +

EE465: Introduction to Digital Image Processing20 Quantization Noise X X ^ MSE=|| X-X || 2 ^ Distortion calculation: Rate calculation: Rate=length of encoded bit stream/number of pixels (bps)

EE465: Introduction to Digital Image Processing21 JPEG Examples (58k bytes)50 (21k bytes)10 (8k bytes) best quality, lowest compression worst quality, highest compression

EE465: Introduction to Digital Image Processing22 Rate-Distortion Tradeoff

EE465: Introduction to Digital Image Processing23 Block artifacts of JPEG when the bit rate is low (0.25bpp)

EE465: Introduction to Digital Image Processing24 JPEG Coding Algorithm Summary

EE465: Introduction to Digital Image Processing25 Lossy Compression of Color Images Color-space transformation luminance chrominance inverse transform forward transform Luminance channel can be treated just like a gray-scale image

EE465: Introduction to Digital Image Processing26 Compression of Chrominance Channels Human eye is relatively insensitive to the high-frequency content of the chrominance channels. Down-sampling 2 C r /C b Q-Table

EE465: Introduction to Digital Image Processing27 Technology is About New Tools The same design principle but each building block can be replaced by a more advanced technique  Transform: DCT becomes Wavelet Transform  Quantization: uniform quantization becomes bitplane coding (to support scalability)  Entropy coding: Huffman coding becomes arithmetic coding (more flexible) JPEG becomes JPEG2000

EE465: Introduction to Digital Image Processing28 A Glimpse into Wavelet Transform* Multi-Resolution Analysis in Vision Human vision system is capable of interpreting the visual information regardless of the resolution

EE465: Introduction to Digital Image Processing29 Progressive Image Transmission I hate to wait – show me a piece and see if I like it or not Low-resolution (LR) High-resolution (HR)

EE465: Introduction to Digital Image Processing30 Haar Transform – the simplest wavelet transform Example

EE465: Introduction to Digital Image Processing31 Reordering Coefficients Apply Haar transform to each 2-by-2 block regrouping              Y approximation horizontal details diagonal detailsvertical details

EE465: Introduction to Digital Image Processing32 Multi-level Wavelet Transform Apply one-level Haar transform              Y Apply Haar transform to Low-Low band only

EE465: Introduction to Digital Image Processing33 Image Example

EE465: Introduction to Digital Image Processing34 Wavelet Image Compression Wavelet Transform Scalar Quantization Entropy Coding image compressed bit stream Major improvements  Wavelet transform instead of DCT  Arithmetic coding instead of Huffman coding  Modeling location instead of intensity Those are the topics in EE565: Advanced Image Processing

EE465: Introduction to Digital Image Processing35 FBI Wavelet Scalar Quantization (WSQ) Standard Established by FBI in 1990s as the standard for fingerprint image compression Wavelet-based: Daubechies’ wavelets were built just in time to win the race Demonstrate better Rate-Distortion performance than DCT-based JPEG standard

EE465: Introduction to Digital Image Processing36 JPEG2000 Standard Developed by ISO in late 1990s to replace the DCT-based JPEG standard Accumulative research progress on wavelet image compression has dramatically pushed the art of lossy image compression forward Demonstrate much better Rate-Distortion performance than DCT-based JPEG standard for typical photographic images

EE465: Introduction to Digital Image Processing37 Wavelet vs. DCT JPEG (CR=64)JPEG2000 (CR=64) discrete cosine transform basedwavelet transform based

EE465: Introduction to Digital Image Processing38 BIGGER Question Why haven’t we seen JPEG being replaced by JPEG2000? Technical superiority DO NOT always imply economical wins (think about Unix vs. Windows) THE next image compression standard has to wait for the right timing Anyone including you can be a part of that business