-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspm_LST.m
102 lines (98 loc) · 3.51 KB
/
spm_LST.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
90
91
92
93
94
95
96
97
98
99
100
101
102
function spm_LST
% LST Toolbox wrapper to call lst functions
%_______________________________________________________________________
% Paul Schmidt, 2015/08/04
addpath(fullfile(spm('dir'),'toolbox','LST'));
rev = 'ersion 3.0.0';
ps_LST_update(2)
SPMid = spm('FnBanner',mfilename,rev);
[Finter,Fgraph,CmdLine] = spm('FnUIsetup','LST');
url = fullfile(spm('Dir'),'toolbox','LST','lst.html');
spm_help('!Disp',url,'',Fgraph,'LST: Lesion segmentation tool for SPM');
fig = spm_figure('GetWin','Interactive');
h0 = uimenu(fig,...
'Label', 'LST',...
'Separator', 'on',...
'Tag', 'LST',...
'HandleVisibility','on');
h1 = uimenu(h0,...
'Label', 'Lesion segmentation (LGA)',...
'Separator', 'off',...
'Tag', 'Lesion segmentation (LGA)',...
'HandleVisibility','on');
h11 = uimenu(h1,...
'Label', 'Lesion segmentation',...
'Separator', 'off',...
'Tag', 'Estimate PVE label and segment lesions',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.lga'');',...
'HandleVisibility','on');
h12 = uimenu(h1,...
'Label', 'Determination of optimal threshold',...
'Separator', 'off',...
'Tag', 'Determination of optimal initial threshold',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.doit'');',...
'HandleVisibility','on');
h2 = uimenu(h0,...
'Label', 'Lesion segmentation (LPA)',...
'Separator', 'off',...
'Tag', 'Prediction model based on a binary classifier',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.lpa'');',...
'HandleVisibility','on');
h3 = uimenu(h0,...
'Label', 'Longitudinal pipeline',...
'Separator', 'on',...
'Tag', 'Longitudinal lesion segmentation and quantification of change',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.long'');',...
'HandleVisibility','off');
h4 = uimenu(h0,...
'Label', 'Lesion filling',...
'Separator', 'off',...
'Tag', 'Lesion filling',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.filling'');',...
'HandleVisibility','on');
h5 = uimenu(h0,...
'Label', 'Extract values of interest',...
'Separator', 'off',...
'Tag', 'Total lesion volume',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.tlv'');',...
'HandleVisibility','on');
h6 = uimenu(h0,...
'Label', 'Create binary lesion maps',...
'Separator', 'off',...
'Tag', 'Thresholding of lesion probability maps',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.thresholding'');',...
'HandleVisibility','on');
h7 = uimenu(h0,...
'Label', 'Merge HTML reports',...
'Separator', 'off',...
'Tag', 'Merge existing HTML reports from multiple subjects',...
'CallBack','spm_jobman(''interactive'','''',''spm.tools.LST.merge_reports'');',...
'HandleVisibility','off');
%{
h8 = uimenu(h0,...
'Label', 'Create overlay',...
'Separator', 'off',...
'Tag', 'Thresholding of lesion probability maps',...
'CallBack','try,ps_LST_create_gif;end',...
'HandleVisibility','on');
%}
h8 = uimenu(h0,...
'Label', 'Check for updates',...
'Separator', 'on',...
'Tag', 'Check for updates',...
'CallBack','spm(''alert'',evalc(''ps_LST_update(1)''),''LST Update'');',...
'HandleVisibility','off');
h9 = uimenu(h0,...
'Label', 'Open manual',...
'Separator', 'off',...
'Tag', 'Manual',...
'CallBack','try,open(fullfile(spm(''dir''),''toolbox'',''LST'',''doc'',''LST_documentation.pdf''));end',...
'HandleVisibility','off');
h10 = uimenu(h0,...
'Label', 'LST website',...
'Separator', 'off',...
'Tag', 'LST website',...
'CallBack',['set(gcbf,''Pointer'',''Watch''),',...
'web(''http://www.statistical-modeling.de/lst.html'',''-browser'');',...
'set(gcbf,''Pointer'',''Arrow'')'],...
'HandleVisibility','off');