-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdefaultResultsStructure.m
More file actions
57 lines (40 loc) · 1.87 KB
/
Copy pathdefaultResultsStructure.m
File metadata and controls
57 lines (40 loc) · 1.87 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
46
47
48
49
50
51
52
53
54
55
56
57
function result = defaultResultsStructure()
%
% (C) Copyright 2019 bidspm developers
result = defaultContrastsStructure;
result.png = true();
result.csv = true();
result.atlas = 'Neuromorphometrics';
result.threshSpm = false();
result.binary = false();
result.montage = struct('do', false(), ...
'slices', [], ...
'orientation', 'axial', ...
'background', fullfile(spm('dir'), ...
'canonical', ...
'avg152T1.nii'));
result.nidm = true();
% transparent plot
layers{1} = struct('color', struct('file', result.montage.background, ...
'range', [0 1], ...
'map', gray(256)));
% color_map_folder = fullfile(fileparts(which('map_luminance')), '..', 'mat_maps');
% load(fullfile(color_map_folder, 'diverging_bwr_iso.mat'));
layers{2} = struct('color', struct('file', [], ... % con image
'range', [-4 4], ...
'label', ''), ...
'opacity', struct('file', [], ... % assume spmT image
'range', [2 3], ...
'label', ''), ...
'type', 'dual');
layers{3} = struct('color', struct('file', [], ... % spmT mask thresholded at 0.05 FWD
'map', 'w', ...
'line_width', 1));
result.sdConfig.layers = layers;
settings = sd_config_settings('init');
settings.slice.orientation = result.montage.orientation;
settings.slice.disp_slices = -50:10:50;
settings.fig_specs.n.slice_column = 4;
settings.fig_specs.title = [];
result.sdConfig.settings = settings;
end