-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathEASY_RENDER_NIFTI_OVERLAY.m
More file actions
38 lines (31 loc) · 1.05 KB
/
Copy pathEASY_RENDER_NIFTI_OVERLAY.m
File metadata and controls
38 lines (31 loc) · 1.05 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
% PlotStat = 'Vis100B_Av.nii'; % The nifti overlay file
%
% afigure; % Opens a large figure window
%
% % D = atemplate_patched('mesh','def5','inflate','overlay',{'curvature' PlotStat},...
% % 'method','raycast','thresh',1);
%
% data.overlay_opts = struct('normal_depth_mm',2.5,'normal_steps',7,'aggregate','max', ...
% 'inpaint_iters',1,'smooth_iters',3);
%
%
% D = atemplate_patched('mesh','def5','inflate','overlay',PlotStat,...
% 'method','raycast');
%
%
%
% axis equal;
%
%aJointColorbar(D); % Adds a colorbar BUT, CAXIS WONT WORK... :(
% New - much better raycast alignment
PlotStat = 'Vis100B_Av.nii';
%PlotStat = 'nTEST_Gamma,60-90,60-90Hz_pairedt.nii';
PlotStat = 'nTEST_Beta_desynch,15-30,15-30Hz_pairedt.nii';
opts = struct('normal_depth_mm',2.5,'normal_steps',7,'aggregate','max', ...
'inpaint_iters',1,'smooth_iters',3);
afigure;
D = atemplate('mesh','def5','inflate', ...
'overlay',PlotStat, ...
'overlay_opts',opts, ...
'method','raycast');
axis equal;