This is to do with the way that the spm2.tar.gz file was unpacked. WinZip
(and possibly other unpacking software) makes an educated guess about whether
a file should be treated as binary or as a Windows text file. If it
considers it as a text file, then it introduces additional bytes into the
file (e.g. every \10 is replaced by \13 \10). This corrupts the
spm_dicom_dict.mat and various other files from the SPM release.
There may be an option to WinZip that allows you to specify that the files
should be considered as binary.
Best regards,
-John
> Since I updated my SPM2 version, I can no longer convert dicom images from
> our Philips 1.5 intera using the dicom toolbox.I have been able to do this
> previously, but not without some problems in the beginning. Now I get the
> following error message;
>
>
> ??? Error using ==>load
> Unable to read MAT file C:\spm2\spm_dicom_dict.mat
>
> File may be corrupt
>
> Error in ==> spm2\spm_dicom_headers.m (readdict)
> On line 275 ==> dict=load('spm_dicom_dict.mat');
>
> Error in spm2\spm_dicom_headers.m
> On line 19 ==> dict=readdict;
>
> Error in spm2\toolbox\DICOM\spm_dicom.m
> On line 7 ==> hdr=spm_dicom_headers(P);
>
> Error in spm2\spm.m
> On line 183 ==> evalin('base', varargin{2}(i).prog
>
> ??? Error while evaluating uicontrol Callback
>
> Can anyone tell what the problem might be. I tried the conversion on images
> that I have succesfully done before, so I know there is nothing wrong with
> the images.
|