0001 function nic_spm_defaults
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 global defaults
0021
0022
0023
0024 defaults.grid = 0.4;
0025 defaults.cmdline = 0;
0026
0027
0028
0029 defaults.analyze.multivol = 0;
0030 defaults.analyze.flip = 1;
0031
0032
0033
0034 defaults.stats.maxmem = 2^20;
0035 defaults.stats.maxres = 64;
0036 defaults.stats.fmri.ufp = 0.001;
0037 defaults.stats.pet.ufp = 0.05;
0038 defaults.stats.eeg.ufp = 1;
0039
0040
0041
0042 defaults.mask.thresh = 0.8;
0043
0044
0045
0046 defaults.realign.estimate.quality = 0.9;
0047 defaults.realign.estimate.weight = 0;
0048 defaults.realign.estimate.interp = 2;
0049 defaults.realign.estimate.wrap = [0 0 0];
0050 defaults.realign.estimate.sep = 4;
0051 defaults.realign.estimate.fwhm = 5;
0052 defaults.realign.estimate.rtm = 1;
0053 defaults.realign.write.mask = 1;
0054 defaults.realign.write.interp = 4;
0055 defaults.realign.write.wrap = [0 0 0];
0056
0057
0058
0059 defaults.unwarp.estimate.fwhm = 4;
0060 defaults.unwarp.estimate.basfcn = [12 12];
0061 defaults.unwarp.estimate.regorder= 1;
0062 defaults.unwarp.estimate.regwgt = 1e5;
0063 defaults.unwarp.estimate.soe = 1;
0064 defaults.unwarp.estimate.rem = 1;
0065 defaults.unwarp.estimate.jm = 0;
0066 defaults.unwarp.estimate.noi = 5;
0067 defaults.unwarp.estimate.expround= 'Average';
0068
0069
0070
0071
0072
0073
0074
0075 defaults.coreg.estimate.cost_fun = 'nmi';
0076 defaults.coreg.estimate.sep = [4 2];
0077 defaults.coreg.estimate.tol = [0.02 0.02 0.02 0.001 0.001 0.001 0.01 0.01 0.01 0.001 0.001 0.001];
0078 defaults.coreg.estimate.fwhm = [7 7];
0079 defaults.coreg.write.interp = 1;
0080 defaults.coreg.write.wrap = [0 0 0];
0081 defaults.coreg.write.mask = 0;
0082
0083
0084
0085 defaults.normalise.estimate.smosrc = 8;
0086 defaults.normalise.estimate.smoref = 0;
0087 defaults.normalise.estimate.regtype = 'mni';
0088 defaults.normalise.estimate.weight = '';
0089 defaults.normalise.estimate.cutoff = 25;
0090 defaults.normalise.estimate.nits = 16;
0091 defaults.normalise.estimate.reg = 1;
0092 defaults.normalise.estimate.wtsrc = 0;
0093 defaults.normalise.write.preserve = 0;
0094 defaults.normalise.write.bb = [[-78 -112 -50];[78 76 85]];
0095 defaults.normalise.write.vox = [2 2 2];
0096 defaults.normalise.write.interp = 1;
0097 defaults.normalise.write.wrap = [0 0 0];
0098
0099
0100
0101 defaults.segment.estimate.priors = char(...
0102 fullfile(nic_spm('Dir'),'apriori','grey.nii'),...
0103 fullfile(nic_spm('Dir'),'apriori','white.nii'),...
0104 fullfile(nic_spm('Dir'),'apriori','csf.nii'));
0105 defaults.segment.estimate.reg = 0.01;
0106 defaults.segment.estimate.cutoff = 30;
0107 defaults.segment.estimate.samp = 3;
0108 defaults.segment.estimate.bb = [[-88 88]' [-122 86]' [-60 95]'];
0109 defaults.segment.estimate.affreg.smosrc = 8;
0110 defaults.segment.estimate.affreg.regtype = 'mni';
0111
0112 defaults.segment.estimate.affreg.weight = '';
0113 defaults.segment.write.cleanup = 1;
0114 defaults.segment.write.wrt_cor = 1;
0115 defaults.segment.write.wrt_brV = 1;
0116
0117
0118
0119 defaults.bias.nbins = 256;
0120 defaults.bias.reg = 0.01;
0121 defaults.bias.cutoff = 30;
0122
0123
0124
0125 defaults.preproc.tpm = char(...
0126 fullfile(nic_spm('Dir'),'tpm','grey.nii'),...
0127 fullfile(nic_spm('Dir'),'tpm','white.nii'),...
0128 fullfile(nic_spm('Dir'),'tpm','csf.nii'));
0129 defaults.preproc.ngaus = [2 2 2 4];
0130 defaults.preproc.warpreg = 1;
0131 defaults.preproc.warpco = 25;
0132 defaults.preproc.biasreg = 0.0001;
0133 defaults.preproc.biasfwhm = 60;
0134 defaults.preproc.regtype = 'mni';
0135 defaults.preproc.samp = 3;
0136
0137
0138
0139 defaults.imcalc.dmtx = 0;
0140 defaults.imcalc.mask = 0;
0141 defaults.imcalc.interp = 1;
0142 defaults.imcalc.dtype = nic_spm_type('int16');
0143
0144
0145
0146 defaults.ui.print = struct('opt',{{'-dpsc2','-append'}},'append',true,'ext','.ps');
0147 defaults.ui.colour1 = [0.8 0.8 1.0];
0148 defaults.ui.colour2 = [1.0 1.0 0.8];
0149 defaults.ui.colour3 = [0.0 0.0 0.0];
0150 defaults.ui.fs = 14;
0151
0152
0153
0154 defaults.eeg.dtype = 'float';
0155