Scaling compression2

424 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
424
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Scaling compression2

  1. 1. Entropy Scaling image compression
  2. 2. 8-bit image
  3. 3. 7-bit image
  4. 4. 6-bit image
  5. 5. 5-bit image
  6. 6. 4-bit image
  7. 7. 3-bit image
  8. 8. 2-bit image
  9. 9. 8-bit image 2-bit image
  10. 10. xx=imread(C:UsersshumanDesktopBoat.png);[l,w]=size(xx)for i=1:l for j=1:wzz=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)
  11. 11. THANK YOU

×