# IMAGE COMPRESSION BASE ON DCT DWT 2012/12/07 Ying Wun, Huang 2012/12/07 Ying Wun, Huang.

## Presentation on theme: "IMAGE COMPRESSION BASE ON DCT DWT 2012/12/07 Ying Wun, Huang 2012/12/07 Ying Wun, Huang."— Presentation transcript:

IMAGE COMPRESSION BASE ON DCT DWT 2012/12/07 Ying Wun, Huang 2012/12/07 Ying Wun, Huang

OUTLINE Why DCT DWT? Proposed Method Proposed Method-Residue Appendix: C Code Interview Questions

Why DCT DWT? Block sizeBuffer size JPEG 88888  512 JPEG2000 32  32 (64  64) 32  512 (64  512) DCT+DWT (Proposed) 8  512

Proposed Method 8×256 DCT DWT Compression

Proposed Method DCT+DWT

Proposed Method JPEG×JPEG2000 Quantization 16 12 14 18 24 49 72 × First column of JPEG 11.52.25 3.375 First row of JPEG2000 ÷12

Proposed Method JPEG×JPEG2000 Quantization 1.332334.5 11.52.25 3.38 1.171.752.63 3.94 1.171.752.63 3.94 1.52.253.38 5.06 234.5 6.75 4.086.139.19 13.78 6913.5 20.25

Proposed Method

Proposed Method-Residue Residue With DCT DWT Compression

Proposed Method-Residue - = 512×512 Original Image Resize: 512×512 Residue

Proposed Method-Residue MPEG4-inter×JPEG2000 Quantization 16 17 18 19 20 21 22 24 × First column of MPEG4-inter 11.52.25 3.375 First row of JPEG2000 ÷16

Proposed Method-Residue Simulation Result

Appendix: C Code Interview Questions Coding Style if(x==2) if(2==x)

Appendix: C Code Interview Questions Coding Style if(x=2) if(2=x) DONE ERROR Compile Compile

Appendix: C Code Interview Questions Example int x=1,y=5; x=2 if(x=2) y=3; return; Compile x=2 y=3 int x=0,y=5; x=0 if(x=0) y=8; return; Compile x=0 y=5 x=?, y=?

Appendix: C Code Interview Questions Property of XOR X = 7 Y = 3 Z = X^Y X = X^Z Y = Y^X X = 3 Y = 7

Appendix: C Code Interview Questions Exchange two variables without TEMP TEMP=x; x=y; y=TEMP; TEMP=x; x=y; y=TEMP; x^=y^=x^=y; x=x^y; y=y^x; x=x^y; y=y^x; x=x^y;

Appendix: C Code Interview Questions Do Not Use “if else,…” r=x?y:z; if x is true, than r=y. if x is false, than r=z.

Appendix: C Code Interview Questions char func(char x, char y, char z) { return } x*y|!x*z;

The End.

Download ppt "IMAGE COMPRESSION BASE ON DCT DWT 2012/12/07 Ying Wun, Huang 2012/12/07 Ying Wun, Huang."

Similar presentations