Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

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

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

3 Why DCT DWT? The scan order of loading image

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

5 Proposed Method 8×256 DCT DWT Compression

6 Proposed Method DCT+DWT

7 Proposed Method JPEG×JPEG2000 Quantization × First column of JPEG First row of JPEG2000 ÷12

8 Proposed Method JPEG×JPEG2000 Quantization

9 Proposed Method

10 Proposed Method-Residue Residue With DCT DWT Compression

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

12 Proposed Method-Residue MPEG4-inter×JPEG2000 Quantization × First column of MPEG4-inter First row of JPEG2000 ÷16

13 Proposed Method-Residue Simulation Result

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

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

16 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=?

17 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

18 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;

19 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.

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

21 The End.


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

Similar presentations


Ads by Google