mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[BV] Finished exercises 1 through 4 on assignment 9
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
24
bv/uebung9.m
Normal file
24
bv/uebung9.m
Normal file
@ -0,0 +1,24 @@
|
||||
% 4.
|
||||
coins = imread('coins.png');
|
||||
edge_01 = edge(coins, 'Canny', 0.1);
|
||||
edge_02 = edge(coins, 'Canny', 0.2);
|
||||
edge_05 = edge(coins, 'Canny', 0.5);
|
||||
edge_075 = edge(coins, 'Canny', 0.75);
|
||||
edge_08 = edge(coins, 'Canny', 0.8);
|
||||
subplot(1, 5, 1);
|
||||
imshow(edge_01);
|
||||
subplot(1, 5, 2);
|
||||
imshow(edge_02);
|
||||
subplot(1, 5, 3);
|
||||
imshow(edge_05);
|
||||
subplot(1, 5, 4);
|
||||
imshow(edge_075);
|
||||
subplot(1, 5, 5);
|
||||
imshow(edge_08);
|
||||
|
||||
% With the threshold 0.5 only the outer edges of the
|
||||
% coins are still detected. With higher thresholds some
|
||||
% coins disappear completely while 0.1 shows almost every
|
||||
% line - including those on the coins.
|
||||
|
||||
% 5.
|
||||
Reference in New Issue
Block a user