From cd75e95ff35944a109ff390fe7779250095b5947 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 22 Nov 2016 13:19:28 +0100 Subject: [PATCH] [BV] Aufgabe 4 von Blatt 5 fertiggestellt Signed-off-by: Jim Martens --- bv/uebung5.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bv/uebung5.m b/bv/uebung5.m index 3d054ee..889086e 100644 --- a/bv/uebung5.m +++ b/bv/uebung5.m @@ -70,4 +70,11 @@ t_opened3 = imopen(t_opened2, se_3); t_dilated = imdilate(t_opened3, se_2); [labels_turkeys, num_turkeys] = bwlabel(t_dilated); figure (5), imshow(turkeys_bw); -figure (6), imshow(t_dilated); \ No newline at end of file +figure (6), imshow(t_dilated); + +% 4. +% I expect the two results to be equal. f shall be the box filter. g shall +% be the result from convolving f with itself. h shall be the result from +% convolving g with the image patch (i). Based on the associativity of +% convolution j = (i * f) * f should be equal to i * (f * f). Combined with +% the commutativity j should be equal to (f * f) * i which is h. \ No newline at end of file