-
Notifications
You must be signed in to change notification settings - Fork 2
/
Execute.m
63 lines (54 loc) · 1.92 KB
/
Execute.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
function Output = Execute(label)
% Main Analyses Script. This is the entry point for ALL automated analyses.
%
% Syntax: [output1,output2] = function_name(input1,input2,input3)
%
% Inputs:
% filePath - input path to the ROOT folder where all the folders OF images are located.
% labelPath - a vertical array of labels that contain exactly the same number of rows as the number of DICOM file that exist.
% input3 - Description
%
% Outputs:
% output1 - Description
% output2 - Description
%
% Example:
% Line 1 of example
% Line 2 of example
% Line 3 of example
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
% See also: OTHER_FUNCTION_NAME1, OTHER_FUNCTION_NAME2
% Author: Yang Ding
% All works sponsored by Dr. Gregory Lodygensky and the Canadian Neonatal Brain Platform
% Saint. Justine Hospital, Montreal, Quebec,
% email address: it@cnbp.ca
% Website: http://cnbp.ca
% 2017-03; Last revision: 2017-08-09 23:24:39 Eastern Time
%------------- BEGIN CODE --------------
% Author: Yang Ding
% All works sponsored by Dr. Gregory Lodygensky and the Canadian Neonatal Brain Platform
% Saint. Justine Hospital, Montreal, Quebec,
% email address: it@cnbp.ca
% Website: http://cnbp.ca
% 2017-03; Last revision: 10:26 AM 2017-03-02
%------------- BEGIN CODE --------------
clc;
% Get Main path;
path = uigetdir;
% Step1: Use path to derive metrics;
Metrics = Step1ExtractMetrics(path,'BDP');
% Must check Metrics dimention vs labelPath size dimension
if (checkSize(Metrics,label))
% Step 2:
ClassificationSummary = Step2ClassifiersTests(Metrics,label);
else
error('Data metrics and/or Data Class Label size mistmatch/emtpy. Please double check those two variables. ')
end
Output = {Metrics, ClassificationSummary};
%Step3ShowResults(ClassificationSummary);
%------------- END OF CODE --------------
end