-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilterBank.m
More file actions
45 lines (32 loc) · 706 Bytes
/
Copy pathfilterBank.m
File metadata and controls
45 lines (32 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function [h1,v1,h2,v2,h4,v4,g42,g21] = filterBank(imageData)
[h1, v1] = computeDerivImages(imageData,1);
[h2, v2] = computeDerivImages(imageData,2);
[h4, v4] = computeDerivImages(imageData,4);
g42 = computeGaussDiff(imageData,1,2);
g21 = computeGaussDiff(imageData,2,4);
figure
subplot(2,4,1)
imshow(h1,[])
title('Horiz,sigma=1');
subplot(2,4,2)
imshow(h2,[])
title('Horiz,sigma=2');
subplot(2,4,3)
imshow(h4,[])
title('Horiz,sigma=4');
subplot(2,4,4)
imshow(g42,[])
title('G_4-G_2');
subplot(2,4,5)
imshow(v1,[])
title('Vert,sigma=1');
subplot(2,4,6)
imshow(v2,[])
title('Vert,sigma=2');
subplot(2,4,7)
imshow(v4,[])
title('Vert,sigma=4');
subplot(2,4,8)
imshow(g21,[])
title('G_2-G_1');
end