mirror of
https://github.com/2martens/uni.git
synced 2026-05-07 11:56:26 +02:00
[BV] Aufgabe 3 der 4. Übung fertiggestellt
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
8
bv/uebung4.m
Normal file
8
bv/uebung4.m
Normal file
@ -0,0 +1,8 @@
|
||||
% 3.
|
||||
img = logical([1 0 0 0 1 1 1 0 1 1]);
|
||||
se = strel('line', 3, 0);
|
||||
dilated_img = imdilate(img, se);
|
||||
eroded_img = imerode(img, se);
|
||||
figure (1), imshow(img);
|
||||
figure (2), imshow(dilated_img);
|
||||
figure (3), imshow(eroded_img);
|
||||
Reference in New Issue
Block a user