Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. %Dialog Box to browse and select image
  2. [name path]=uigetfile({'*.jpg','IMAGE Files (*.jpg)'},'Choose Image for Thresholding');
  3. A=imread(strcat(path,name));
  4. %converting rgb to gray
  5. A=rgb2gray(A);
  6. for i=1:255
  7. figure(1),imshow(A,[i 255-i]);
  8. pause(0.01);
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement