Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I = imread('p.jpg');
- figure(1);
- imshow(I);
- a = min(I(:));%minimum pixel of image I
- b = max(I(:));%maximum pixel of image I
- I = (I-a).*(255/(b-a));
- figure(2);
- imshow(I);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement