-
Notifications
You must be signed in to change notification settings - Fork 0
/
inspect_explore.m
45 lines (25 loc) · 884 Bytes
/
inspect_explore.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
function output = inspect_explore(img,gradechoinv,mask,kernel,ncomp)
%test different inspect models on one/a few scans
%INPUTS
% gradechoinv - either a single gradechoinv file
%TO DO - MAKE THIS WORK WITH ARRAY JOBS!
%% single fits on each scan
%make sure that the relevant inputs are strings
%fit continuous inspect
if nargin < 5
output.map = inspect_map(img,gradechoinv,mask,kernel);
else
options.map.ncomp = ncomp;
output.map = inspect_map(img,gradechoinv,mask,kernel,options.map);
end
%fit clustering inspect
if nargin < 5
output.seg = inspect_seg(img,gradechoinv,mask,kernel);
else
options.seg.nclus = ncomp;
output.seg = inspect_seg(img,gradechoinv,mask,kernel,options.seg);
end
%estimate voxelwise spectra and volume fraction estimation
%just use default options
output.vox = inspect_vox(img,gradechoinv,mask,kernel);
end