SHARE
TWEET

Untitled

a guest May 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc, clear all, close
  2.  
  3. lena1 = imfinfo('lena.jpg');
  4. lena2 = imfinfo('lena.bmp');
  5.  
  6. I = imread('lena.jpg');
  7. J = imread('lena.bmp');
  8. K = rgb2gray(I);
  9.  
  10. figure(1)
  11. imshow(I);
  12. figure(2)
  13. imshow(J);
  14. figure(3)
  15. imshow(K);
  16.  
  17. imwrite(K,'lena_gray.bmp');
  18.  
  19. K = double(K);
  20.  
  21. figure(4)
  22. colormap gray;
  23. mesh(K);
  24.  
  25. figure(5)
  26. plot(I(10,:));
  27.  
  28. figure(6)
  29. plot(I(:,5));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top