Professional Documents
Culture Documents
JPEG standard
lossy loseless
•Suitable for natural For artificial images such as
images technical drawings, icons or
•Minor loss of comics, line drawings etc
fidelity
Original Reconstructed
JPEG STANDARD
JPEG stands for Joint Photographic Experts Group
8X8
Quantization
Coding Tables
Tables
Header
Tables
Entropy
Data DC Zigzag
Coding DPCM
RLC
AC
YUV and Y'UV a specific analog encoding of color information
Benefits:
DCT is proven to be the optimal transform
DCT is an orthogonal transform
Good compression of the block
Can be computed efficiently
DCT algorithm is symmetrical
Input matrix of DCT coefficients:
21 -34 24 -8 -10 11 14 7
DC
-9 -8 -4 6 -5 4 3 -1
-10 6 -5 4 -4 4 2 1
-8 -2 -3 5 -3 3 4 6
4 -2 -4 6 -4 4 2 -1
4 -3 -4 5 6 3 1 1
0 -8 -4 3 2 1 4 0
DCT transform
Quantization
Heart of any lossy scheme
4 7 10 13 16 19 22 25
7 10 13 16 19 22 25 28
10 13 16 19 22 25 28 31
13 16 19 22 25 28 31 34
16 19 22 25 28 31 34 37
19 22 25 28 31 34 37 40
22 25 28 31 34 37 40 43
25 28 31 34 37 40 43 46
Typiclly a JPEG quantum matrix has larger values in the lower half
of the quantum matrix
DCT coefficients after quantization :.
43 3 2 0 0 0 0 0
3 3 2 0 0 0 0 0
1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Here the significant values are concentrated to the left and top of the
matrix. After quantization most quantized DCT coefficients in 8X8
matrix are truncated to zero values
Preparation for Entropy Coding:
•Run Length Encoding on ACs
•DPCM on DCs
Zigzag Sequence :
This pattern is designed RUN Length Coding on
to facilitate entropy AC coefficients
coding by placing low
frequency coefficients Differential Pulse Code
Modulation on DC
Coefficient
Huffman Coding
Entropy coding
Modes of Operation in JPEG
• sequential encoding
•Lossless encoding
•
• Progressive encoding
•Hierarchical
encoding
Sequential Encoding:
Uses Huffman coding.
Each block is encoded in a single left-to-right and
top-to-bottom scan.
Progressive Encoding:
Each scan follows the zigzag ordering, quantization and
entropy coding, same as sequential encoding, but takes much
less time to encode and decode.
Hierarchical encoding :-
•pyramidal encoding
•Large images
•Compound documents
Comparison of JPEG and JPEG2000 Performance
reversible irreversible
"near-lossless" image
Multi-Level Bi-Level
compression standard (Gray Scale) (Black & White)
that could offer better
compression efficiency •High Frequency
than lossless JPEG •Very High Resolutions
Will often contain text,
halftone images
and line-art
Conclusion
http://en.wikipedia.org/wiki/JPEG
http://en.wikipedia.org/wiki/JPEG_2000
http://cobweb.ecn.purdue.edu/~ace/jpeg-tut/jpegtut1.html
Bye------Thank You
Compressed Images at 0.125 bpp by means of (a) JPEG and (b) JPEG2000