+ All Categories
Home > Documents > Scaling compression2

Scaling compression2

Date post: 04-Dec-2014
Category:
Upload: amr-nasr
View: 251 times
Download: 0 times
Share this document with a friend
Description:
 
11
Entropy Scaling image compression
Transcript
Page 1: Scaling compression2

Entropy Scaling image compression

Page 2: Scaling compression2

8-bit image

Page 3: Scaling compression2

7-bit image

Page 4: Scaling compression2

6-bit image

Page 5: Scaling compression2

5-bit image

Page 6: Scaling compression2

4-bit image

Page 7: Scaling compression2

3-bit image

Page 8: Scaling compression2

2-bit image

Page 9: Scaling compression2

8-bit image 2-bit image

Page 10: Scaling compression2

xx=imread('C:\Users\shuman\Desktop\Boat.png');[l,w]=size(xx)for i=1:l for j=1:w zz=dec2bin(xx(i,j),8);yy=zz(5:8);ff(i,j)=16*bin2dec(yy);

hh2(i,j)=64*round(xx(i,j)/64);hh3(i,j)=32*round(xx(i,j)/32);hh4(i,j)=16*round(xx(i,j)/16);hh5(i,j)=8*round(xx(i,j)/8);hh6(i,j)=4*round(xx(i,j)/4);hh7(i,j)=2*round(xx(i,j)/2); endendfigure,imshow(xx)figure,imshow(ff)figure,imshow(hh2)figure,imshow(hh3)figure,imshow(hh4)figure,imshow(hh5)figure,imshow(hh6)figure,imshow(hh7)

Page 11: Scaling compression2

THANK YOU


Recommended