Thanks for the bug report. Downloading and installing Revision 174 from
ftp://ftp.fil.ion.ucl.ac.uk/spm/spm5b_updates/ should fix this one.
The problem was because of rounding errors. SPM was checking to ensure that
the bottom row of a couple of affine transform matrices was exactly [0 0 0
1]. Now it just checks that the values are close to [0 0 0 1].
Best regards,
-John
> I am having trouble loading structural and functional images into SPM5b
> -- worked fine with SPM2.
>
> One structural image shows as if the content of .mat files was ignored.
> I did update SPM5b code, including :
> ------------------------------------------------------------------------
> r166 | john | 2005-05-18 16:46:13 +0100 (Wed, 18 May 2005) | 3 lines
>
> SPM2 compatible images with .mat files were not being properly handled.
> spm_get_space was ignoring contents of .mat files for single volume
> files, whereas nifti() was using the contents of the .mat files to
> over-ride the sform and qform matrices. This has been fixed.
>
> With another series of functional images I get this error:
>
> --------------------------
> Running "Realign: Estimate"
> ??? Error while evaluating uicontrol Callback.
>
> ??? Error using ==> nifti/subsasgn (fun)
> "mat0" should be a 4x4 matrix, with a last row of 0,0,0,1.
>
> Error in ==> [log in to unmask]
> On line 20 ==> obji = fun(obji,subs,val);
>
> Error in ==> /home/andrew/spm/spm5b/spm_get_space.m
> On line 28 ==> if strcmp(N.mat0_intent,'Aligned'), N.mat0 = M;
> end;
>
> Error in ==> /home/andrew/spm/spm5b/spm_realign.m
> On line 141 ==> spm_get_space([P{s}(i).fname ','
> num2str(P{s}(i).n)], P{s}(i).mat);
>
> Error in ==> /home/andrew/spm/spm5b/spm_config_realign.m (estimate)
> On line 406 ==> spm_realign(P,flags);
|