Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. clc
  2. clear
  3. I=imread('snowflakes.png');
  4. I2=imread('rice.png');
  5. I3=imread('football.jpg');
  6.  
  7. subplot(4,1,1);
  8. imshow(I);
  9. subplot(4,1,2);
  10. imshow(I2);
  11. subplot(4,1,3);
  12. imshow(I3);
  13.  
  14. for i=20:100
  15. for j=50:100
  16. I2(i,j) = 120;
  17. end
  18.  
  19. end
  20. subplot(4,1,4);
  21. imshow(I2);
  22.  
  23. figure;
  24. subplot(3,2,1);
  25. imshow(I2);
  26. subplot(3,2,2);
  27. imshow(I2,[190,200]);
  28.  
  29. I4=imread('tire.tif');
  30. for i=40:150
  31. for j=40:150
  32. I4(i,j) = 75;
  33. end
  34.  
  35. end
  36.  
  37.  
  38. imfinfo('rice.png')
  39. imwrite(I4,'tire33.png','quality',5);
  40. I42=imread('tire33.png');
  41. subplot(3,2,3);
  42. imshow(I42);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement