Image Compression
Image Compression
image type
resolution
e.g. faxes
grayscale
color
fax: facsimile
CCITT Comit Consultatif International Tlphonique et
Tlgraphique, it is part of the ITU International
Telecommunication Union, one of the specialized
agencies of the United Nations
In the late 70s CCITT starts thinking about a
standard for fax transmission
1980 CCITT Group 3 standard
CCITT Group 3 - I
CCITT Group 3 -5
Run-length coding
G3 1D
G3 2D
10
G3 2D
11
G3 2D
reference line
current line
generated
with codewords for
code
-3, -2, -1, 0, +1, +2, +3
...
+2 -2
<mode | length of preceding
white run | length of black run>
0001
12
G3 1D
0.13 bits/pixel 57s. for A4 at 4.8 Kbps
G3 2D (k=2) 0.11 bits/pixel 47s. for A4 at 4.8 Kbps
Continuous-tone images:
why lossless compression?
medical images
historical documents
images with legal relevance
15
Continuous-tone images:
lossless compression
GIF standard
PNG standard
JPEG-LS
18
19
20
Continuous-tone images:
why lossy compression?
22
Continuous-tone images:
lossy compression
JPEG
JPEG2000
a new image coding system that uses stateof-the-art compression techniques based on
wavelet technology
file extension .jp2
With very compressed files, if image size is
the same, perceived quality of JPEG2000
images is better w.r.t. JPEG images
23
JPEG format - I
24
JPEG Coder -
28
JPEG Coder -
28
30
where
31
32
finite precision
quantization of the coefficients (always)
Some coefficient related to high frequency are not
transmitted. This allows higher compression without
sacrifying too much quality as human eye is less
responsible
33
Quantization - I
34
Quantization - II
35
Zig-zag scan
Low frequency
coefficients are
transmitted before
higher frequency
coefficients
This allows for
progressive
visualization of this
8x8 block
36
Raster transmission
Progressive transmission
37
Binary coding
38
JPEG Decoder
Binary
Decoder
Inverse DCT
39
JPEG performances - I
40
JPEG performances - II
Original
Quality factor 75
Quality factor 20
Quality factor 3
41