-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherosion.m
22 lines (17 loc) · 807 Bytes
/
erosion.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
img = imread('wirebond.png');
subplot(2,3,1), imshow(img,[]), title('Original image');
se = strel('disk', 5); % erode with shape of a disk at radius of 5
img1 = imerode(img, se);
subplot(2,3,2), imshow(img1, []), title('Erosion with radius 5')
se = strel('disk', 10); % figure the rest out yourself lads
img1 = imerode(img, se);
subplot(2,3,3), imshow(img1, []), title('Erosion with radius 10')
se = strel('disk', 15); % it's pretty self-explanatory if I say so myself
img1 = imerode(img, se);
subplot(2,3,4), imshow(img1, []), title('Erosion with radius 15')
se = strel('disk', 20);
img1 = imerode(img, se);
subplot(2,3,5), imshow(img1, []), title('Erosion with radius 20')
se = strel('disk', 25);
img1 = imerode(img, se);
subplot(2,3,6), imshow(img1, []), title('Erosion with radius 25')