Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. lut = uint8(255*(C2/max(C2)));
  2. [Hlut, xlut] = imhist(intlut(hist1, lut),256);
  3. tmpC = cumsum(Hlut);
  4. k = max(tmpC) / max(Hlut);
  5. Clut = tmpC / k;
  6.  
  7. figure(4);
  8. subplot(4, 1, 1);
  9. imshow(intlut(hist1, lut));
  10. title('LUT converted');
  11.  
  12. subplot(4,1,2);
  13. histeq(hist1, 256);
  14. title('histeq treated');
  15.  
  16. subplot(4,1,3);
  17. plot(xlut, Hlut);
  18. title('histogram');
  19.  
  20. subplot(4,1,4);
  21. plot(xlut, Clut);
  22. title('cumulated histogram');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement