Dear John,
Thank you very much for looking into this!!
I'm using SPM2. I downloaded the most recent version again and I'm getting the
same error. The line numbers are different now.
I also noticed during debugging that the hdr.CSAImageHeaderInfo of the dicom
image was not in readable format.. AcquisitionMatrix was 64*64s (instead of
64*64) and I'm not sure if this has anything to do with it..
??? Reference to non-existent field 'name'.
Error in ==> spm_dicom_convert>get_numaris4_val at 653
if strcmp(deblank(str(i).name),name),
Error in ==> spm_dicom_convert>read_AcquisitionMatrixText at 639
val = get_numaris4_val(str,'AcquisitionMatrixText');
Error in ==> spm_dicom_convert>select_mosaic_images at 541
isempty(read_NumberOfImagesInMosaic(hdr{i}))
Error in ==> spm_dicom_convert at 35
[mosaic,standard] = select_mosaic_images(images);
Error in ==> spm_DICOM at 8
spm_dicom_convert(hdr)
Error in ==> spm at 1183
evalin('base',varargin{2}(i).prog)
??? Error while evaluating uicontrol Callback.
Best Regards,
Sheeba
Quoting "Ashburner John (PSYCHOLOGY)" <[log in to unmask]>:
> Which version of SPM are you using? In the current version, the line
> numbers do not match the ones in your error message.
>
> Best regards,
> -John
>
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
> On Behalf Of Sheeba Arnold
> Sent: Wednesday, June 27, 2007 6:59 PM
> To: [log in to unmask]
> Subject: Re: [SPM] DICOM convert error
>
> Hi,
>
> Here's the error message-
>
> ??? Reference to non-existent field 'name'.
>
> Error in ==> spm_dicom_convert>get_numaris4_val at 457
> if strcmp(deblank(str(i).name),name),
>
> Error in ==> spm_dicom_convert>read_AcquisitionMatrixText at 446
> val = get_numaris4_val(str,'AcquisitionMatrixText');
>
> Error in ==> spm_dicom_convert>select_mosaic_images at 350
> isempty(read_NumberOfImagesInMosaic(hdr{i}))
>
> Error in ==> spm_dicom_convert at 18
> [mosaic,standard] = select_mosaic_images(images);
>
> Error in ==> spm_DICOM at 8
> spm_dicom_convert(hdr)
>
> Error in ==> spm at 1183
> evalin('base',varargin{2}(i).prog)
>
> ??? Error while evaluating uicontrol Callback.
>
> Thanks and Regards,
> Sheeba
>
|