computer graphics - compression topic, Exams of Computer Graphics

computer graphics - compression topic

Typology: Exams

2017/2018

Uploaded on 03/06/2018

aditya-sundar-raja-i
aditya-sundar-raja-i šŸ‡®šŸ‡³

4

(1)

1 document

1 / 59

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
E.G.M. Petrakis Multimedia Compression 1
Multimedia Compression
Audio, image and video require vast
amounts of data
320x240x8bits grayscale image: 77Kb
1100x900x24bits color image: 3MB
640x480x24x30frames/sec: 27.6 MB/sec
Low network’s bandwidth doesn't allow for
real time video transmission
Slow storage or processing devices don't
allow for fast playing back
Compression reduces storage requirements
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b

Partial preview of the text

Download computer graphics - compression topic and more Exams Computer Graphics in PDF only on Docsity!

Multimedia Compression

Audio, image and video require vast

amounts of data

320x240x8bits grayscale image: 77Kb

1100x900x24bits color image: 3MB

640x480x24x30frames/sec: 27.6 MB/sec

Low network’s bandwidth doesn't allow for

real time video transmission

Slow storage or processing devices don't

allow for fast playing back

Compression reduces storage requirements

Classification of Techniques

 Lossless: recover the original

representation

 Lossy: recover a representation

similar to the original one

 high compression ratios

 more practical use

 Hybrid: JPEG, MPEG, px64 combine

several approaches

Furht at.al. 96

Lossless Techniques

Furht at.al. 96

Lossy Techniques

Furht at.al. 96

JPEG Block Diagrams

JPEG Encoder

 Three main blocks:

 Forward Discrete Cosine Transform (FDCT)

 Quantizer

 Entropy Encoder

 Essentially the sequential JPEG encoder

 Main component of progressive, lossless

and hierarchical encoders

 For gray level and color images

DCT Coefficients



F(0,0) is the DC coefficient: average

value over the 64 samples

 The remaining 63 coefficients are the

AC coefficients

 Pixels in [-128,127]: DCTs in

[-1024,1023]

 Most frequencies have 0 or near to 0

values and need not to be encoded

 This fact achieves compression

Quantization Step

 All 64 DCT coefficients are quantized

 F

q

(u,v) = Round[F(u,v)/Q(u,v)]

 Reduces the amplitude of coefficients

which contribute little or nothing to 0

 Discards information which is not

visually significant

 Quantization coefficients Q(u,v) are

specified by quantization tables

 A set of 4 tables are specified by JPEG

AC Coefficients

The 63 AC coefficients

are ordered by a ā€œzig-

zagā€ sequence

Places low frequencies

before high frequencies

Low frequencies are likely

to be 0

Sequences of such 0

coefficients will be

encoded by fewer bits

Furht at.al. 96

DC Coefficients

 Predictive coding of DC Coefficients

 Adjacent blocks have similar DC intensities

 Coding differences yields high

compression

Huffman coding

 Converts each sequence into binary

 First DC following with ACs

 Huffman tables are specified in JPEG



Each (runlength, size) is encoded

using Huffman coding

 Each (amplitude) is encoded using a

variable length integer code

 (1,4)( 12 ) => (1111110110 1100 )

Example of Huffman table

Furht at.al. 96

Compression Measures

Compression ratio (CR): increases with

higher compression

CR = OriginalSize/CompressedSize

Root Mean Square Error (RMS): better

quality with lower RMS

X

i

: original pixel values

x

i

: restored pixel values

n: total number of pixels



n

i

i i

X x

n

RMS

1

2

  • Furht at.al.