The memory problems were occuring because all the header info was stored from
all the DICOM files, so that it could be sorted into different volumes. A
more recent version of the converter only saves the essential fields in
memory. This is available in SPM8b, but also may (not entirely sure) be
included among the recent updates for SPM5.
Best regards,
-John
On Tuesday 31 March 2009 03:52, Michael T Rubens wrote:
> try dicominfo instead of spm_dicom_headers (I think you need Image
> Processing Toolbox).
> Michael
>
> 2009/3/30 Steven Liu <[log in to unmask]>
>
> > I used to have the same problem when I converted more than 280 volumes,
> > each of
> > which had more than 40 slices. And it is very slow to use
> > SPM_DICOM_Convert to
> > convert fMRI DICOM files to Analyze. It is ok if you use it to convert a
> > few number of DICOM
> > files, such as Structural DICOM files. You may use MRIConvert to convert
> > functional
> > DICOM when you have too many files.
> >
> >
> > Steven
> >
> >
> >
> > 2009/3/30 鲍敏 <[log in to unmask]>
> >
> > Hi,
> >
> >> Excuse me for a beginner's question. I am trying to convert the original
> >> dicom files to the format that can be recognized by SPM5. So I tried
> >> using
> >> spm_dicom_convert and spm_dicom_headers. However, the following error
> >>
> >> messages appeared:
> >> >> spm_dicom_headers('003_0001');
> >>
> >> ??? Error using ==> fread
> >> Out of memory. Type HELP MEMORY for your options.
> >>
> >> Error in ==> spm_dicom_headers>decode_csa2 at 508
> >> t(i).item(j).val = fread(fp,len,'*char')';
> >>
> >> Error in ==> spm_dicom_headers>decode_csa at 425
> >> t = decode_csa2(fp,lim);
> >>
> >> Error in ==> spm_dicom_headers>read_dicom at 100
> >> dat = decode_csa(fp,tag.length);
> >>
> >> Error in ==> spm_dicom_headers>readdicomfile at 66
> >> ret = read_dicom(fp, 'il',dict);
> >>
> >> Error in ==> spm_dicom_headers at 25
> >> tmp = readdicomfile(P(i,:),dict);
> >>
> >> %% Here, '003_0001' is a dicom file. I am using SPM5 on Matlab R2007b
> >> with 1G RAM
> >>
> >>
> >> Thanks!
|