-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfirst.m
42 lines (39 loc) · 868 Bytes
/
first.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
clear all;
close all;
clc;
while (1==1)
choice=menu('CBIR',...
'Create Database',...
'Initialize Network',...
'Test on Photos',...
'Exit');
if (choice ==1)
% if exist('dataset1.mat','file')
% load dataset1;
% else
databaseConstruction;
% end
end
if (choice == 2)
netw;
end
if (choice == 3)
% pause(0.001);
% [file_name file_path] = uigetfile ('*.jpg');
% if file_path ~= 0
% im = imread ([file_path,file_name]);
% tic
% im_out = imscan (net,im);
% toc
% figure;
% imshow(im_out,'notruesize');
gui
% end
end
if (choice == 4)
clear all;
clc;
close all;
return;
end
end