Hi SPMers,
we noted a change in behavior of nifti loading that must have been introduced recently:
In an older SPM version (e.g. 6906):
V=spm_vol('file.nii');
A=V.private.dat;
A(50,:,:) -> Gives out values of the image at that point.
In the newest SPM version (7219), the same gives this error:
Error using file2mat
Indices must be int32.
Error in file_array/subsref>multifile2mat (line 179)
val(cc(i)+1:cc(i+1)) = file2mat(obj,int64(1),int64(x(y==i)));
Error in file_array/subsref>subfun (line 99)
t = multifile2mat(sobj,varargin{:});
Error in file_array/subsref (line 65)
t = subfun(sobj,args{:});
Led to this bug: https://github.com/leaddbs/leaddbs/issues/138
Probably we can easily fix this on our side but wanted to make aware of it because I think a lot of toolboxes may use the Nifti loading capability in a similar way.
Best, Andy
|