Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = imread('C:\Users\JNEC-20\Pictures\camera1.jpg');
- se = strel('line',11,90);
- a=rgb2gray(a);
- b = imdilate(a,se);
- c=imerode(a,se);
- subplot(2,3,1);
- imshow(a), title('Original');
- subplot(2,3,2);
- imshow(b), title('Dilated');
- subplot(2,3,3);
- imshow(c), title('Eroded');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement