Advertisement
ErshEight

Histogramy pt.2

Oct 26th, 2022
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.81 KB | None | 0 0
  1. clear all;
  2. close all;
  3.  
  4. load histogramZadany;
  5. obrazek=imread("phobos.bmp");
  6.  
  7. h1=histeq(obrazek);
  8. h2=histeq(obrazek,histogramZadany);
  9. adj=imadjust(obrazek);
  10. CLAHE=adapthisteq(obrazek);
  11.  
  12.  
  13. figure;
  14. subplot(2,2,1);
  15. imshow(obrazek);
  16. title("oryginal");
  17. subplot(2,2,2);
  18. imhist(obrazek);
  19. subplot(2,2,3);
  20. imshow(h1);
  21. title("histeq");
  22. subplot(2,2,4);
  23. imhist(h1);
  24.  
  25. figure;
  26. subplot(2,2,1);
  27. imshow(obrazek);
  28. title("oryginal");
  29. subplot(2,2,2);
  30. imhist(obrazek);
  31. subplot(2,2,3);
  32. imshow(h2);
  33. title("histogram Zadany");
  34. subplot(2,2,4);
  35. imhist(h2);
  36.  
  37. figure;
  38. subplot(3,2,1);
  39. imshow(obrazek);
  40. title("oryginal");
  41. subplot(3,2,2);
  42. imhist(obrazek);
  43. subplot(3,2,3);
  44. imshow(adj);
  45. title("imadjust");
  46. subplot(3,2,4);
  47. imhist(adj);
  48. subplot(3,2,5);
  49. imshow(CLAHE);
  50. title("CLAHE");
  51. subplot(3,2,6);
  52. imhist(CLAHE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement