Yingfang Zhang Department of Computer Science UCCS

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

JPEG DCT Quantization FDCT of 8x8 blocks.
Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Tools for Manipulating JPEG-2000 Based Whole Slide Image Formats
SWE 423: Multimedia Systems
School of Computing Science Simon Fraser University
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Image File Format Only focused in TIFF-Tag Image File Format Grayscale 8 bit Purpose-interchange of digital image data Goals: Extensibility-capable to.
JPEG.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Hao Jiang Computer Science Department Sept. 27, 2007
CMPT 365 Multimedia Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
2007Theo Schouten1 Compression "lossless" : f[x,y]  { g[x,y] = Decompress ( Compress ( f[x,y] ) | “lossy” : quality measures e 2 rms = 1/MN  ( g[x,y]
CS430 © 2006 Ray S. Babcock Lossy Compression Examples JPEG MPEG JPEG MPEG.
JPEG Marco Fuentes García Francisco Gea Martínez.
Image and Video Compression
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
JPEG C OMPRESSION A LGORITHM I N CUDA Group Members: Pranit Patel Manisha Tatikonda Jeff Wong Jarek Marczewski Date: April 14, 2009.
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
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.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Klara Nahrstedt Spring 2011
Digital Image: Representation & Processing (2/2) Lecture-3
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
Computer Science 101 Images in Web Pages. Image Files Two common formats, GIF and JPEG GIF images are more flexible for use as icons JPEG images are sharper.
Bobby Bodenheimer CS 258 Introduction to Graphics Fall 2003 The Tiff Image Specification.
Prof. Amr Goneid Department of Computer Science & Engineering
DCT cs195g: Computational Photography James Hays, Brown, Spring 2010 Somewhere in Cinque Terre, May 2005 Slides from Alexei Efros.
Indiana University Purdue University Fort Wayne Hongli Luo
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Analysing the Impact of File Formats on Data Integrity Volker Heydegger University of Cologne Archiving 2008 Bern, 23rd – 27th June 2008.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
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.
Data compression. lossless – looking for unicolor areas or repeating patterns –Run length encoding –Dictionary compressions Lossy – reduction of colors.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
Digital Images are represented by manipulating this…
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
HOW JEPG WORKS Presented by: Hao Zhong For 6111 Advanced Algorithm Course.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Introduction to JPEG m Akram Ben Ahmed
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
JPEG. Introduction JPEG (Joint Photographic Experts Group) Basic Concept Data compression is performed in the frequency domain. Low frequency components.
Implementing JPEG Encoder for FPGA ECE 734 PROJECT Deepak Agarwal.
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.
Graphics and image data representation
JPEG Compression What is JPEG? Motivation
IMAGE COMPRESSION.
Chapter 9 Image Compression Standards
A Simple Image Compression : JPEG
JPEG Image Coding Standard
JPEG.
CMPT 365 Multimedia Systems
Ganbat OIP Lab
Modified advanced image coding
JPEG Pasi Fränti
UNIT IV.
COMS 161 Introduction to Computing
The JPEG Standard.
Image Coding and Compression
Digital Steganography Utilizing Features of JPEG Images
Presentation transcript:

Yingfang Zhang Department of Computer Science UCCS JPEG Simulation Yingfang Zhang Department of Computer Science UCCS

CONTENTS Introduction Tiff File and Image Data JPEG Compression JPEG Decompression Compression Measures and Quality Analysis Conclusion

INTRODUCTION JPEG is the image compression standard which is widely used. Help understand the JPEG steps and the relation between the compression and quality. Simulate complete steps of JPEG by a real example, include: scanning an image , get the pixel data from this image, using DCT compression, using IDCT decompression. Show the relation between the compression and quality. Conclusion

IMAGE Image . We scan this image at the EAS 143. . This Image with width 14 mm and height 8 mm. . Scanning with White-Black type, 1 bit/pixel, min-is white format. . Storing as TIFF file. The total has 306 bytes.

TIFF FILE AND PIXEL DATA . The TiFF file consists of a header and image file directory. . Every entry has a tag name. . Using Table 3-6 (see book Multimedia System Design ) to get every pixel data.

For example: 49 49 Byte Order. Lowest byte is written before the highest byte. Data are read from right to left. 2a 00 “00 2a”, indication Tiff file version 6. 18 00 00 00 “00 00 00 18”, represent a pointer to the beginning byte of image file directory, 1*16+8 = 24, the IFD begins from 25th byte. 0e 00 “00 0e”, represent how many entries in this IFD. e= 14. Total number of entry is 14. For every IFD entry consists of 12 bytes, from right to left, first 2 bytes is Tag ID, then 2 bytes is data type, then 4 bytes is data length, then 4 bytes is data. FE 00 04 00 01 00 00 00 00 00 00 00 “00000000 00000001 0004 00fe”, Tag ID is 00fe, look table, we find this represents subfile type, 0004 mean data type is SHORT, 00000001 mean data length is 1, 000000000000 mean data is 0, look table, we know No Specify Subfile Type.

JEPG STEPS JPEG Encoder 1. DCT Transform. 2. Quantizer. 3. Entropy JPEG Decoder 1. Entropy decoder. 2. Dequantization. 3. IDCT

DCT After DCT Before DCT . The figure before DCT has 592 zeros. . The figure after DCT has 728 zeros, The figure after DCT has more 138 zeros. . Conclude that the figure after DCT uses less data to represent the same image What is the ratio?

QUANTIZER After DCT After Quantization 1. The figure after DCT has 726 zeros. 2. The figure after Quantization has 759 zeros. 3. Quantization make further compress.

ENTROPY Conclude that the initial image use 306*8=2448 bits , after compression, only using 132 bits to represent the image.

DECOMPRESSION 1. Entropy Decoder. 2. Dequantization. 3. IDCT

COMPRESSION MEASURES AND QUALITY ANALYSIS We need to consider Cr & Nb in practical work. Following slide is an example for different compression ratio.

Example .Compare two figure, the image doesn’t be lost. After Decompression Initial Image Cr=1.5 Nb=0.66 .Compare two figure, the image doesn’t be lost.

Example After dcompression Initial image Cr=5.8 Nb=0.17 Compare two figure, the image is lost

Conclusion JPEG is a very good way to compress data. The compression ratio is opposite of the compression quality. There is a trade-off between compression ratio and compression quality. Because of time, we do not further discuss some question, i.e, color image.