thank you for your answer, but I tried used a Bigger memory, it also report the same error.
`Using single precision for computations.
Input scalar image: E:\matlab lead.dbs\templates\space\MNI_ICBM_2009b_NLIN_ASYM\bb.nii
Reference image: E:\nill\sample_patient_postop_ct\anat_t1.nii
Transform file does not exist: E:\nill\sample_patient_postop_ct\glanatInverseComposite.h5
Can’t read initial transform E:\nill\sample_patient_postop_ct\glanatInverseComposite.h5
错误使用 spm_vol>spm_vol_hdr (line 80)
File “E:\nill\sample_patient_postop_ct\scrf\bb.nii” does not exist.
出错 spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
出错 ea_load_nii (line 39)
nii = spm_vol(fname);
出错 ea_crop_nii (line 49)
nii=ea_load_nii(filename);
出错 ea_refreshscrf>ea_createbbfiles (line 76)
ea_crop_nii([directory,’scrf’,filesep,’bb.nii’]);
出错 ea_refreshscrf>ea_createrefineslice (line 53)
ea_createbbfiles(directory); % needs to unfortunately be done each time since coregistration may have changed.
出错 ea_refreshscrf>ea_loadrefineslice (line 30)
ea_createrefineslice(directory,options,refine);
出错 ea_refreshscrf (line 3)
standardslice=ea_loadrefineslice(directory,options,0);
出错 ea_subcorticalrefine>ea_subcorticalrefine_OpeningFcn (line 66)
ispresent=ea_refreshscrf(options,handles,directory);
出错 gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
出错 ea_subcorticalrefine (line 42)
gui_mainfcn(gui_State, varargin{:});
出错 ea_autocoord (line 206)
ea_subcorticalrefine(options);
出错 ea_run (line 96)
ea_autocoord(options);
出错 lead_dbs>run_button_Callback (line 187)
ea_run(‘run’,options);
出错 gui_mainfcn (line 95)
feval(varargin{:});
出错 lead_dbs (line 43)
gui_mainfcn(gui_State, varargin{:});
出错
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead_dbs(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
计算 UIControl Callback 时出错
maybe I lack something, but I don’t know what I lack
I just have two files
the Pre-operative images: anat_t1.nii
Post-operative images: postop_ct.nii
thank you for help!