Just an uneducated guess:
Do you have all updates to SPM installed?
Did you install them in-place, overwriting the old code?
Do you have the SPM5 folder in your MATLAB path?
If you say "no" to any of the above questions, then this may be part of
the problem.
Volkmar
On Wed, 26 Sep 2007, Anthony Jack wrote:
> I am having problems doing dicom conversion with the current release of SPM.
> Here is an example of the sort of error I keep getting.
>
>
> Running "DICOM Import"
> Changing directory to: C:\Documents and Settings\aij2\My
> Documents\scanner expt files\CASE 4T\
> ??? Error using ==> feval
> Undefined function or method 'offset' for input arguments of type 'file_array'.
>
> Error in ==> file_array.subsasgn>asgn at 144
> obj = feval(fun,obj,dat);
>
> Error in ==> file_array.subsasgn at 22
> case 'offset', obj = asgn(obj,@offset, subs(2:end),dat);
> %offset(obj,dat);
>
> Error in ==> nifti.subsasgn>assigndat at 364
> val.offset = max(sval.offset,352);
>
> Error in ==> nifti.subsasgn>fun at 76
> obj = assigndat(obj,val);
>
> Error in ==> nifti.subsasgn at 20
> obji = fun(obji,subs,val);
>
> Error in ==> spm_dicom_convert>convert_mosaic at 182
> N.dat = file_array(fname,dim,dt,0,RescaleSlope,RescaleIntercept);
>
> Error in ==> spm_dicom_convert at 41
> convert_mosaic(mosaic,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 using ==> spm_jobman('serial','','jobs.util.dicom');
> Error using ==> feval
> Undefined function or method 'offset' for input arguments of type 'file_array'.
>
> ??? Error while evaluating uicontrol Callback
>
>>>
>
--
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/
|