Dear Ferenc,
with the current DICOM import implementation, SPM will try to read all
image headers before converting anything. This is necessary for
single-slice DICOM data, because SPM needs to assemble them into 3D data.
The only solution to this is (apart from modifying software) to split your
conversion job into smaller chunks.
Volkmar
On Tue, 3 Jul 2007, Ferenc Acs wrote:
> Yesterday I downloaded the current version of SPM5 and installed the
> Updates.
> It is running with MATLAB 7.0.1 (R14) SP1 on a WindowsXP machine.
>
> While importing around 1400 DICOM images of one session I get the error
> message below. The matlab documentation recommends to increase the size
> of swapping space.
> I succecively increased the swap space to 20GB but get still this error
> message. The system memory is 2GB
>
> The images were acquired with a SIEMENS Allegra Scanner.
>
> Any ideas?
>
> Ferenc Acs
>
> -----------------------------------------------------------------------
> Running "DICOM Import"
> Changing directory to: D:\fMRI\DCMAtt\Subject001\
> ??? Out of memory. Type HELP MEMORY for your options.
>
> Error in ==> file_array.subsasgn>subfun at 95
> if dt(ind).isint, dat(~finite(dat)) = 0; end;
>
> Error in ==> file_array.subsasgn at 63
> subfun(sobj,double(dat),args{:});
>
> Error in ==> nifti.subsasgn>fun at 74
> val = subsasgn(obj.dat,subs(2:end),val);
>
> Error in ==> nifti.subsasgn at 20
> obji = fun(obji,subs,val);
>
> Error in ==> spm_dicom_convert>write_volume at 587
> N.dat(:,:,:) = volume;
>
> Error in ==> spm_dicom_convert>convert_standard at 207
> write_volume(hdr{i},root_dir,format);
>
> Error in ==> spm_dicom_convert at 44
> convert_standard(standard,root_dir,format);
>
> Error in ==> spm_config_dicom>convert_dicom at 130
> spm_dicom_convert(hdr,'all',root_dir,job.convopts.format);
>
> Error in ==> spm_jobman>run_struct1 at 1540
> feval(prog,val);
>
> Error in ==> spm_jobman>run_struct1 at 1548
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_struct1 at 1548
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_job at 469
> run_struct1(c);
>
> Error in ==> spm_jobman>serial at 2128
> run_job(jobs);
>
> Error in ==> spm_jobman at 76
> serial(varargin{2:nargin});
>
> ??? Error while evaluating uicontrol Callback.
>
>
> ------------------------------------------------------------
> Ferenc Acs
> Lehrstuhl Prof. Dr. M. W. Greenlee
> Institut für Psychologie
> Universität Regensburg
> 93040 Regensburg
> Tel. +49 (0)941 943 3582
> Fax +49 (0)941 943 3233
> http://www.psychologie.uni-regensburg.de/Greenlee/team/Acs/acs.html
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|