Advertisement
Guest User

Untitled

a guest
May 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. clear all; close all;
  2.  
  3. image = imread('lysy.gif');
  4. imageR = reshape(image,[ (size(image,1)*size(image,2)) , 1]);
  5.  
  6. imageR = double(imageR);
  7. m=randint(size_x,size_y,[1,max(max(image(:,:)))]);
  8.  
  9. for i=1:1:1515
  10. for j=1:1:1515
  11. x = golomb_KOD(image(i,j),m(i,j));
  12. end
  13. end
  14.  
  15.  
  16. imageKod = x;
  17.  
  18. fid = fopen('mm.txt','w');
  19. fprintf(fid, '%i', imageKod);
  20. fclose(fid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement