is it a compressed nifti (nii.gz)? If so, try uncompressing it first
On 04/06/2017 02:53 PM, Ilaria Sani wrote:
Hi Bruce,
Not sure this answer your question...
In matlab workspace, I am able to load data in two halves:
H1=MRIread(half1) H2=MRIread(half2)
And then concatenate the volumes concatenate them var=cat(4,H1,H2).
So, somehow matlab can handle...
However, when those operations are embedded inside a function (like in the case of load_nifti and MRIread) I get the error.
Thanks, Ilaria
-----Original Message----- From: freesurfer-bounces@nmr.mgh.harvard.edu [mailto:freesurfer-bounces@nmr.mgh.harvard.edu] On Behalf Of Bruce Fischl Sent: Thursday, April 6, 2017 1:36 PM To: Freesurfer support list freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] MRIread (load_nifti)- Out of memory
Hi Ilaria
do you have any reason to believe that it isn't just out of memory? If so, there's not much to do other than get more RAM or use a different machine
cheers Bruce
On Thu, 6 Apr 2017, Ilaria Sani wrote:
Dear All,
I’m trying to load a pretty big diffusion MRI dataset (320x320x260x122).
I’m running matlab 2015a 64bit on a linux machine.
I’m using MRIread, which in turn calls load_nifti.
I’m getting the following error:
Error using +
Out of memory. Type HELP MEMORY for your options.
Error in load_nifti (line 158)
hdr.vol = hdr.vol * hdr.scl_slope + hdr.scl_inter;
Error in MRIread (line 158)
hdr = load_nifti(fspec,headeronly);
When I load half dataset (320x320x260x61) it works ok.
I tried to increase the Maximum array size in Matalb (default 1,000 - now 10,000), but I’m still getting the error.
I tried to change machine (which runs matlab 2013a on linux) and it worked fine.
I think this is due to some matlab settings.
Can anyone help?
Thanks a lot,
Ilaria
Ilaria Sani, PhD Postdoctoral Fellow, Freiwald Lab The Rockefeller University 1230 York Ave., New York, NY 10065. Phone: (212) 327 7699 Fax: (212) 327 7698 Email: isani01@rockefeller.edu
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer