-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSURF.m
89 lines (74 loc) · 2.01 KB
/
SURF.m
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
figureW = 1100;
figureH = 600;
global openAgain;
openAgain = 0;
handleFigure = figure(...
'position',[100, 70, figureW, figureH] ,...
'Name','MyGui-SURF',...
'menu','none',...
'NumberTitle','off',...
'Interruptible','off',...
'Resize','off'...
);
global handleAxes;
handleAxes = axes(...
'units','normalized',...
'Position', [0.01, 0.62, 0.15, 0.28],...
'Interruptible','off',...
'ydir', 'reverse', ...
'Box','on',...
'XTick',[],...
'YTick',[],...
'Visible','off'...
);
global chosenImg;
chosenImg = image(...
'Interruptible','off',...
'Parent', handleAxes,...
'Visible','off'...
);
buttonOpen = uicontrol( ...
'Style','pushbutton', ...
'Units','normalized', ...
'Position',[0.01 0.920 0.08 0.054], ...
'String','Open an Image.', ...
'callback','open');
buttonRun = uicontrol( ...
'Style','pushbutton', ...
'Units','normalized', ...
'Position',[0.01 0.560 0.04 0.054], ...
'String','Run', ...
'callback','Run_SURF',...
'Visible','off');
buttonNext = uicontrol( ...
'Style','pushbutton', ...
'Units','normalized', ...
'Position',[0.01 0.560 0.04 0.054], ...
'String','Next', ...
'callback','next',...
'Visible','off');
buttonPrev = uicontrol( ...
'Style','pushbutton', ...
'Units','normalized', ...
'Position',[0.01 0.500 0.04 0.054], ...
'String','Prev', ...
'callback','prev',...
'Visible','off');
global imagesAxeses;
imgWidth = figureW * 0.8 / 5;
imgHeight = figureH * 0.9 / 5;
for row = 1 : 1
for col = 1 : 1
index = (row - 1) * 5 + col;
imagesAxeses(index) = axes( ...
'Position', [ ((col - 1) * (imgWidth * 1.02) + 200) / figureW ...
((5 - row) * (imgHeight * 1.05)+10) / figureH ...
imgWidth / figureW ...
imgHeight / figureH], ...
'Xtick', [], ...
'Ytick', [], ...
'ydir', 'reverse', ...
'Visible','off'...
);
end
end