Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 34

D10K-6C01 Pengolahan Citra

PCD-08 Image Compression

Program Studi S-1 Teknik Informatika


FMIPA Universitas Padjadjaran
Semester Genap 2015-2016
Image Compression Overview
• Images take a lot of storage space
– 1024 x 1024 x 32 x bits images requires 4 MB
– suppose you have some video that is 640 x 480 x
24 bits x 30 frames per second , 1 minute of video
would require 1.54 GB
• Many bytes take a long time to transfer slow
connections – suppose we have 56,000 bps
– 4MB will take almost 10 minutes
– 1.54 GB will take almost 66 hours

PCD-07 Algoritma Pengolahan Citra 4


Research Opportunity
Storage problems

the desire to exchange images over the Internet

have lead to a large interest research in


image compression algorithms.
PCD-07 Algoritma Pengolahan Citra 4
Goal of Image Compression
• The goal of image compression is to reduce
the amount of data required to represent a
digital image.

PCD-07 Algoritma Pengolahan Citra 4


Approaches
• Lossless
– Information preserving
– Low compression ratios

• Lossy
– Not information preserving
– High compression ratios

• Trade-off: image quality vs compression ratio

PCD-07 Algoritma Pengolahan Citra 4


Data ≠ Information
• Data and information are not synonymous terms!

• Data is the means by which information is


conveyed.

• Data compression aims to reduce the amount of


data required to represent a given quantity of
information while preserving as much information
as possible.

PCD-07 Algoritma Pengolahan Citra 4


Example: Data and Information
• The same amount of information can be represented by
various amount of data
• Examples

– Your wife, Helen, will meet you at Logan Airport in Boston at 5


minutes past 6:00 pm tomorrow night

– Your wife will meet you at Logan Airport at 5 minutes past 6:00
pm tomorrow night

– Helen will meet you at Logan at 6:00 pm tomorrow night

PCD-07 Algoritma Pengolahan Citra 4


Compression Ratio

compression

Compression ratio:

PCD-07 Algoritma Pengolahan Citra 4


Example

PCD-07 Algoritma Pengolahan Citra 4


Flow of Image Compression
Original Image Decoded Image
Bitstream

Encoder 0101100111... Decoder

• The image file is converted into a series of binary data,


which is called the bit-stream
• The decoder receives the encoded bit-stream and
decodes it to reconstruct the image
• The total data quantity of the bit-stream is less than
the total data quantity of the original image

PCD-07 Algoritma Pengolahan Citra 4


IMAGE COMPRESSION
REVISITED
Setiawan Hadi Pengolahan Citra Dijital 12
Setiawan Hadi Pengolahan Citra Dijital 13
Setiawan Hadi Pengolahan Citra Dijital 14
Setiawan Hadi Pengolahan Citra Dijital 15
Setiawan Hadi Pengolahan Citra Dijital 16
Measuring Performance
n1
• Compression Ratio: Cr 
n2
W 1 H 1

   f ( x, y)  f '( x, y)
2

• Root Mean square error: RMSE 


x 0 y 0

WH

255
• Peak signal to noise ratio: PSNR  20 log 10
MSE

Setiawan Hadi Pengolahan Citra Dijital 17


Setiawan Hadi Pengolahan Citra Dijital 18
Setiawan Hadi Pengolahan Citra Dijital 19
Setiawan Hadi Pengolahan Citra Dijital 20
Setiawan Hadi Pengolahan Citra Dijital 21
Setiawan Hadi Pengolahan Citra Dijital 22
Setiawan Hadi Pengolahan Citra Dijital 23
Setiawan Hadi Pengolahan Citra Dijital 24
Setiawan Hadi Pengolahan Citra Dijital 25
Setiawan Hadi Pengolahan Citra Dijital 26
Setiawan Hadi Pengolahan Citra Dijital 27
Setiawan Hadi Pengolahan Citra Dijital 28
Setiawan Hadi Pengolahan Citra Dijital 29
Setiawan Hadi Pengolahan Citra Dijital 30
Setiawan Hadi Pengolahan Citra Dijital 31
Setiawan Hadi Pengolahan Citra Dijital 32
ILUSTRASI JPEG

Q=100% Q=50% Q=25%

Q=10% Q=1%
Setiawan Hadi Pengolahan Citra Dijital 33
Tabel Komparasi
Q% SIZE CR COMMENTS
100 83,261 2.6:1 Extremely minor artifacts
50 15,138 15:1 Initial signs of subimage artifacts
25 9,553 23:1 Stronger artifacts; loss of high resolution
information
10 Severe high frequency loss; artifacts on
4,787 46:1 subimage boundaries ("macroblocking") are
obvious
1 Extreme loss of color and detail; the leaves are
1,523 144:1
nearly unrecognizable

Setiawan Hadi Pengolahan Citra Dijital 34

You might also like