Advertisement
Guest User

dip

a guest
Oct 13th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. a = imread('C:\Users\JNEC-20\Pictures\camera1.jpg');
  2. se = strel('line',11,90);
  3. a=rgb2gray(a);
  4.  
  5. b = imdilate(a,se);
  6. c=imerode(a,se);
  7. subplot(2,3,1);
  8. imshow(a), title('Original');
  9. subplot(2,3,2);
  10. imshow(b), title('Dilated');
  11. subplot(2,3,3);
  12. imshow(c), title('Eroded');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement