Dear Alfonso,
thanks for your email.
It seems to be the same problem than the one reported recently:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=spm;95492653.1502
and the fix is the same than the one you suggest. It will be available
in the next set of SPM12 updates.
Best regards,
Guillaume.
On 24/04/15 18:31, Alfonso Nieto Castañón wrote:
> Hi,
>
> I believe there could be a very minor bug in spm_get_space.m which was
> causing some strange behavior (when attempting to modify the header info
> of the first scan on a 4d nifti volume that has been realigned but not
> resliced, the header info of the *last* scan would get overwritten as well).
>
> In particular the line 30 in spm_get_space.m:
> if size(N.extras.mat,4)<size(N.dat,4)
>
> perhaps should read instead:
> if size(N.extras.mat,3)<size(N.dat,4)
>
> Could somebody please confirm whether this change is adequate?
>
> Thanks!
> Alfonso
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|