> in spm_smooth.m
>
> (1)
> should line 31 read
> if nargin==3; %instead of if nargin==4? (or I have an older version)
You have an older version. This sounds like spm_smooth.m in SPM96.
>
> (2)
> should the line 70
> img = spm_slice_vol(V1(i),M1,dim(1:2),[1 0]);
> be changed to
> img = spm_slice_vol(V1(i),M1,dim(1:2), 0);
> %when the mask file and toBeMasked file in the same orientation
> %(same dim, vox, origin) and the mask file consists of only (0 1) values?
I guess that you are referring to spm_mask.m. In the case you describe,
nearest neighbour interpolation is preferable, as tiny rounding errors are
likely to cause problems with the current code.
best regards,
-John
--
Dr John Ashburner.
Wellcome Department of Cognitive Neurology.
12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420
http://www.fil.ion.ucl.ac.uk/~john
mail: [log in to unmask]
|