Top Banner
Image Image coding/compression coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: http:// webpages . acs . ttu . edu / theeren
14

Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Dec 27, 2015

Download

Documents

Griffin Parker
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Image coding/compressionImage coding/compression

EE5364 DSP Project

Pradeep Suthram, David Hemmert, Tammo Heeren

All Mathcad files [MCD/PDF] can be found on:http://webpages.acs.ttu.edu/theeren

Page 2: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

OverviewOverview

Quantization– Linear quantization– Adaptive quantization

Compression– DCT– JPEG– Wavelet

Page 3: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Linear QuantizationLinear Quantization

Image intensities are quantized into equidistant quantization steps [Mathcad 2001 File]

0 17 34 51 68 85 102 119 136 153 170 187 204 221 238 2550

17

34

51

68

85

102

119

136

153

170

187

204

221

238

255Quantization steps

Grayscale levels

quan

tized

gra

ysca

le le

vels

Page 4: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Linear Quantization resultsLinear Quantization results

1 Bit

8 Bit

Page 5: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Linear Quantization errorLinear Quantization error

Page 6: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Linear Quantization SNRLinear Quantization SNR

1 2 3 4 5 6 7 80

10

20

30

40

50

60SNR vs. grayscale resolution

Grayscale resolution [Bits]

SN

R [

dB]

6.2dB per grayscale bit

Page 7: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Adaptive QuantizationAdaptive Quantization

Quantization steps are scaled by the characteristic image probability density function [Mathcad 2001 File]

0 17 34 51 68 85 102 119 136 153 170 187 204 221 238 2550

17

34

51

68

85

102

119

136

153

170

187

204

221

238

255Quantization steps

Grayscale levels

quan

tized

gra

ysca

le le

vels

0 17 34 51 68 85 102 119 136 153 170 187 204 221 238 2550

17

34

51

68

85

102

119

136

153

170

187

204

221

238

255Quantization steps

Grayscale levels

quan

tized

gra

ysca

le le

vels

Page 8: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Adaptive Quantization resultsAdaptive Quantization results

Adaptive quantization Linear quantization

Page 9: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Adaptive Quantization errorAdaptive Quantization error(adaptive vs. linear)(adaptive vs. linear)

Page 10: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Adaptive Quantization SNRAdaptive Quantization SNR

1 2 3 4 5 6 7 80

10

20

30

40

50

60SNR vs. grayscale resolution

Grayscale resolution [Bits]

SN

R(d

B]

5.6dB per grayscale bit for adaptive quantization [red]6.2dB per grayscale bit for linear quantization [blue]

Page 11: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

8x8 pixel block

DCT QuantizerLevel-shift Encoder Data

• Lenna BMP file used

• Gray scale image level-shifted by –128

• for n = 8, 2^(n-1) = 128

JPEG AlgorithmJPEG Algorithm

Page 12: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

Quantization

using a typical normalization matrix

[ 16 11 10 16 24 40 51 61

12 12 14 19 26 58 60 55

14 13 16 24 40 57 69 56

14 17 22 29 51 87 80 62

18 22 37 56 68 109 103 77

24 35 55 64 81 104 113 92

49 64 78 87 103 121 120 101

72 92 95 98 112 100 103 99 ]

Encoding

• Zig-Zag Pattern

• Huffman Coding

• Run-length Coding

• Tables

DC

Size | Amplitude

AC

Run/Size | Amplitude

JPEG AlgorithmJPEG Algorithm

Page 13: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

To come:To come:

Compression– DCT– JPEG decompression– Wavelet

Page 14: Image coding/compression EE5364 DSP Project Pradeep Suthram, David Hemmert, Tammo Heeren All Mathcad files [MCD/PDF] can be found on: .

References:References:

1. Rafael C. Gonzalez, Richard E. Wood, “Digital Image Processing”, Addison Wesley, 1993

2. Geoffrey M. Davis, Aria Nosratinia, “Wavelet-based Image Coding: An Overview”, http://www.geoffdavis.net/

3. Subhasis, Saha, “Image Compression - from DCT to Wavelets : A Review”, http://www.acm.org/crossroads/xrds6-3/sahaimgcoding.html

4. Weidong Kou, “Digital Image Compression Algorithms and Standards,” Kluwer Academic Publishers, 1995.

5. “Selected Papers on Image Coding and Compression,” Majid Rabbani, Ed., Brian J. Thompson, Gen. Ed., SPIE Milestone Series, Vol MS-48, SPIE Optical Engineering Press, 1992.

6. “Fractal Image Compression Theory and Application,” Yuval Fisher, Ed., Springer-Verlag New York, 1995.

7. Bernd Jaehne, “Digital Image Processing”, Third Edition, Springer-Verlag, New York 1995