-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_testing.m
More file actions
45 lines (40 loc) · 1.59 KB
/
run_testing.m
File metadata and controls
45 lines (40 loc) · 1.59 KB
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
function run_testing()
%RUN_TESTING A GUI for processing data with an existing neural network.
%
% This program is a graphical user interface for processing data through a
% neural network generated from one of the various training programs from
% the Image Processing and Neural Networks Lab (IPNNL) at The University
% of Texas at Arlington.
%
% See also RESOURCES, RUN_TRAINING.
% Rohit Rawat (rohitrawat@gmail.com), 08-23-2015
% $Revision: 1 $ $Date: 23-Aug-2015 15:50:31 $
p = fileparts(mfilename('fullpath'));
cd(p);
required_modules = {'training_gui', 'testing_gui', 'resources', 'training_program_interface', 'testing_program_interface'};
for f=1:length(required_modules)
if(~exist(fullfile(pwd, [required_modules{f} '.m']), 'file') && ~exist(fullfile(pwd, [required_modules{f} '.p']), 'file'))
message = {['Missing module: ' required_modules{f}];
'Please ensure that you unzipped all the files in the archive';
'The current folder is:';
pwd;
'Please change the current folder to where all the files exist.'};
disp(message);
msgbox(message);
return;
end
end
code_directory = fullfile(pwd,resources('CodeDirectory'));
if(exist(code_directory, 'dir'))
addpath(code_directory);
else
message = {['Missing folder: ' resources('CodeDirectory')];
'Please ensure that you unzipped all the files in the archive';
'The current folder is:';
pwd;
'Please change the current folder to where all the files exist.'};
disp(message);
msgbox(message);
return;
end
testing_gui();