Dear HweeLing,
The problem is that the noise estimation function
"cg_noise_estimation.m" requieres a lot of memory for the 3D wavelet
decomposition.
Obviously, the best solution is to increase your RAM memory but it this
is not an alternative for you I can suggest you a small trick that can
do the job.
as the noise is supposed to be stationary you can estimate the noise
from a portion of you data instead of the full dataset.
you can add this to lines to line 28 in "cg_noise_estimation.m" to
process only the 50% of your data
ima=ima(:,:,round(0.25*s(3)):round(0.75*s(3)));
s = size(ima);
problably this will fix your problem
hope this helps
Jose Manjon
HweeLing Lee escribió:
> Dear all,
>
> I'm encountering this error message whenever I tried to run the vbm8
> toolbox "estimate and write":
>
> Running 'VBM8: Estimate & Write'
> Initial Coarse Affine Registration..
> Fine Affine Registration..
> VBM8 Revision 343
> Failed 'VBM8: Estimate & Write'
> Out of memory. Type HELP MEMORY for your options.
> In file "C:\MATLAB\spm8\toolbox\vbm8\cshift3D.m" (???), function
> "cshift3D" at line 23.
> In file "C:\MATLAB\spm8\toolbox\vbm8\afb3D.m" (???), function
> "afb3D_A" at line 95.
> In file "C:\MATLAB\spm8\toolbox\vbm8\afb3D.m" (???), function "afb3D"
> at line 40.
> In file "C:\MATLAB\spm8\toolbox\vbm8\dwt3D.m" (???), function "dwt3D"
> at line 27.
> In file "C:\MATLAB\spm8\toolbox\vbm8\cg_noise_estimation.m" (???),
> function "cg_noise_estimation" at line 39.
> In file "C:\MATLAB\spm8\toolbox\vbm8\cg_vbm8_write.m" (v342), function
> "cg_vbm8_write" at line 247.
> In file "C:\MATLAB\spm8\toolbox\vbm8\cg_vbm8_run.m" (v331), function
> "run_job" at line 228.
> In file "C:\MATLAB\spm8\toolbox\vbm8\cg_vbm8_run.m" (v331), function
> "cg_vbm8_run" at line 89.
>
> The following modules did not run:
> Failed: VBM8: Estimate & Write
>
> Could someone please advise? Thank you.
>
> --
> Best wishes,
> HweeLing
--
________________________________________________________
Dr. Jose V. Manjón Herrera ------- [log in to unmask]
home: http://personales.upv.es/jmanjon
[IBIME - Biomedical Imaging Area]
BET - Bioengineering, Electronics and Telemedicine Group
UPV - Politechnical University of Valencia - Spain
________________________________________________________
|