hi ana,
i had similar problems which i couldnt solve for a long time, until i
found out that my images had non-zero values outside the brain, i.e. not
zero nor NaN. while calculating a mask (what some spm tools do), NOTHING
is masked out (no voxel is ever zero) and matlab crashed due to memory
problems. when i changed the outside values to zero (during image
calculation, or by masking with a anatomical mask), the problem vanished.
It might be worth a look in you data, at the non-brain voxels (with mricro).
another tip: do you run this on a windows machine? if you really need
the images like they are, or if the problem mentioned before does not
apply, try running the script on a linux machine with more memory (if
you have the chance). You might have problems getting more that 2 (maybe
3) GB of memory under windows, whereas linux gives you as much as is
installed in the machine (or so i heard...)... :-)
the problem should be independent from the hard disk that you run the
job on.
cheers,
Hartmut
--
Dr. rer. nat. Hartmut Schuetze
Universitaetsklinik f. Anaesthesiologie und Intensivtherapie
Universitaetsklinik f. Neurologie II
Leipziger Str. 44
39120 Magdeburg
Phone: +49 391 67 15145
Fax : +49 391 67 14474
|