forked from Inria-Empenn/spmbasics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
normalise.m
22 lines (19 loc) · 1.11 KB
/
normalise.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%-----------------------------------------------------------------------
% Job saved on 18-Apr-2024 14:56:24 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
%
home = getenv('HOME');
root = fullfile(home, 'spmbasics', '/data/output/face_rep_gui');
func = spm_select('FPList', fullfile(root,'RawEPI'), '^sM.*\.img$');
anat = spm_select('FPList', fullfile(root,'Structural'), '^sM.*\.img$');
matlabbatch{1}.spm.spatial.normalise.write.subj.def = cellstr(spm_file(anat,'prefix','y_','ext','nii'));
matlabbatch{1}.spm.spatial.normalise.write.subj.resample = cellstr(spm_file(func,'prefix','ar'));
matlabbatch{1}.spm.spatial.normalise.write.woptions.bb = [-78 -112 -70
78 76 85];
matlabbatch{1}.spm.spatial.normalise.write.woptions.vox = [3 3 3];
matlabbatch{1}.spm.spatial.normalise.write.woptions.interp = 4;
matlabbatch{1}.spm.spatial.normalise.write.woptions.prefix = 'w';
save(fullfile(scriptdir,'normalise.mat'),'matlabbatch');
spm_jobman('run',matlabbatch);