1 Image Compression อ. รัชดาพร คณาวงษ์ วิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยศิลปากรวิทยาเขต พระราชวังสนามจันทร์

Slides:



Advertisements
Similar presentations
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Advertisements

Data Compression CS 147 Minh Nguyen.
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.
Lecture04 Data Compression.
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
Image Compression (Chapter 8)
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Image Compression (Chapter 8)
Lecture 4 Source Coding and Compression Dr.-Ing. Khaled Shawky Hassan
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
Lossless Data Compression Using run-length and Huffman Compression pages
Lossless Compression - I Hao Jiang Computer Science Department Sept. 13, 2007.
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]
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Image Compression Image compression address the problem of reducing the amount of data required to represent a digital image with no significant loss of.
Software Research Image Compression Mohamed N. Ahmed, Ph.D.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
Chapter 5 : IMAGE COMPRESSION – LOSSLESS COMPRESSION - Nur Hidayah Bte Jusoh (IT 01481) 2)Azmah Bte Abdullah Sani (IT 01494) 3)Dina Meliwana.
Chapter 2 Source Coding (part 2)
Lecture 1 Contemporary issues in IT Lecture 1 Monday Lecture 10:00 – 12:00, Room 3.27 Lab 13:00 – 15:00, Lab 6.12 and 6.20 Lecturer: Dr Abir Hussain Room.
ECE472/572 - Lecture 12 Image Compression – Lossy Compression Techniques 11/10/11.
Page 110/6/2015 CSE 40373/60373: Multimedia Systems So far  Audio (scalar values with time), image (2-D data) and video (2-D with time)  Higher fidelity.
D ATA C OMMUNICATIONS Compression Techniques. D ATA C OMPRESSION Whether data, fax, video, audio, etc., compression can work wonders Compression can be.
Prof. Amr Goneid Department of Computer Science & Engineering
Chapter 8 Image Compression. What is Image Compression? Reduction of the amount of data required to represent a digital image → removal of redundant data.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 8 – Image Compression.
Indiana University Purdue University Fort Wayne Hongli Luo
Image Compression (Chapter 8) CSC 446 Lecturer: Nada ALZaben.
1 Source Coding and Compression Dr.-Ing. Khaled Shawky Hassan Room: C3-222, ext: 1204, Lecture 5.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Image Compression – Fundamentals and Lossless Compression Techniques
Image Compression Fasih ur Rehman. Goal of Compression Reduce the amount of data required to represent a given quantity of information Reduce relative.
COMPRESSION. Compression in General: Why Compress? So Many Bits, So Little Time (Space) CD audio rate: 2 * 2 * 8 * = 1,411,200 bps CD audio storage:
Computer Vision – Compression(1) Hanyang University Jong-Il Park.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Huffman Code and Data Decomposition Pranav Shah CS157B.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
CS654: Digital Image Analysis
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Digital Image Processing Lecture 22: Image Compression
Lossless Compression(2)
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
Image require a lots of space as file & can be very large. They need to be exchange from various imaging system There is a need to reduce both the amount.
Multi-media Data compression
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5.
Dr. Hadi AL Saadi Image Compression. Goal of Image Compression Digital images require huge amounts of space for storage and large bandwidths for transmission.
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.
IT472 Digital Image Processing
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Image Compression (Chapter 8) CS474/674 – Prof. Bebis.
Introductions What Is Data Compression ? Data compression is the process of reduction in the amount of signal space that must be allocated to a given.
Image Compression (Chapter 8)
IMAGE PROCESSING IMAGE COMPRESSION
Digital Image Processing Lecture 20: Image Compression May 16, 2005
IMAGE COMPRESSION.
Data Compression.
Huffman Coding, Arithmetic Coding, and JBIG2
CH 8. Image Compression 8.1 Fundamental 8.2 Image compression models
Image Compression 9/20/2018 Image Compression.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Image Compression Fundamentals Error-Free Compression
Image Coding and Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

1 Image Compression อ. รัชดาพร คณาวงษ์ วิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์ มหาวิทยาลัยศิลปากรวิทยาเขต พระราชวังสนามจันทร์

2 Image Compression Reducing the size of image data files While retaining necessary information Original Image Compressed Image file extracted Image file compressdecompress

3 Terminology  refer relation between original image and the compressed file 1. Compression Ratio 2. Bits per Pixel A larger number implies a better compression A smaller number implies a better compression

4 Compression Ratio Ex Ex Image 256X256 pixels, 256 level grayscale can be compressed file size 6554 byte. Original Image Size = 256X256(pixels) X 1(byte/pixel) = bytes (1)

5 Bits per Pixel Ex Ex Image 256X256 pixels, 256 level grayscale can be compressed file size 6554 byte. Original Image Size = 256X256(pixels) X 1(byte/pixel) = bytes Compressed file = 6554(bytes)X8(bits/pixel) = bits (2)

6 Why we want to compress? To transmit an RGB 512X512, 24 bit image via modem 28.2 kbaud(kilobits/second)

7 Key of compression DataInformationReducing Data but Retaining Information DATA are used to convey information. Various amounts of data can be used to represent the same amount of information. It’s “Data redundancy” Relative data redundancy

8 Entropy Average information in an image. Average number of bits per pixel

9 Redundancy Coding Redundancy Interpixel Redundancy Psychovisual Redundancy

10 Coding Redundancy Occurred when data used to represent image are not utilized in an optimal manner

11 Coding Redundancy(cont) An 8 gray-level image distribution shown in Table rkrk p(r k )code1l 1 (r k )code2l 2 (r k ) r 0 = r 1 =1/ r 2 =2/ r 3 =3/ r 4 =4/ r 5 =5/ r 6 =6/ r 7 =

12 Coding Redundancy(cont) Original Image 8 possible gray level = 2 3

13 Interpixel Redundancy Adjacent pixel values tend to be highly correlated

14 Psychovisual Redundancy Some information is more important to the human visual system than other types of information

15 Compression System Model Compression Input Preprocessing Encoding Compressed File Compressed File Output Postprocessing Decoding Compressed File Compressed File Decompression

16 Types of Compression There are 2 types of Compression Loseless Compression Lossy Compression

17 Loseless Compression No data are lost Can recreated exactly original image Often the achievable compression is mush less

18 Huffman Coding  Using Histogram probability  5 Steps Find the histogram probabilities Order the input probabilities(small  large) Addition the 2 smallest Repeat step 2&3, until 2 probability are left Backward along the tree assign 0 and 1

19 Huffman Coding(cont)  Step 1 Histogram Probability p 0 = 20/100 = 0.2 p 1 = 30/100 = 0.3 p 2 = 10/100 = 0.1 p 3 = 40/100 = 0.4 p 3  0.4 p 1  0.3 p 0  0.2 p 2  0.1  Step 2 Order

20 Huffman Coding(cont)  Step 3 Add 2 smallest Natural CodeProbabilityHuffman Code

21 Huffman Coding(cont) The original Image :average 2 bits/pixel The Huffman Code:average

22 Run-Length Coding Counting the number of adjacent pixels with the same gray-level value Used primarily for binary image Mostly use horizontal RLC

23 Run-Length Coding(cont) Binary Image 8X8 horizontal 1st Row8 2nd Row0,4,4 3rd Row1,2,5 4th Row1,5,2 5th Row1,3,2,1,1 6th Row2,1,2,2,1 7th Row0,4,1,1,2 8th Row8

24 Run-Length Coding(cont) Extending basic RLC to gray-level image by using bit-plane coding It will better if change the natural code into gray code NaturalGray Code

25 Lempel-Ziv-Weich Coding(LZW) Assign fixed-length code words to variable GIF,TIFF,PDF CRSPBPEncoded O/P Dictionary Location Dictionary Entry … …

26 Lossy Compression Allow a loss in the actual image data Can not recreated exactly original image Commonly the achievable compression is mush more JPEG

27 Fidelity Criteria Objective fidelity criteria –RMS Error –RMS Signal-To-Noise Ratio Subjective fidelity criteria

28 JPEG