Hello,
I have installed FreeSurfer on a Linux box and everything works great. However, our lab does most all of our processing in MATLAB in a Windows XP-64 platform. Within MATLAB, I am able to import the files existing within the /surf/ folder to work with and visualize the meshes. However, I am unable to load in any of the *.mgz files within the /mri/ folder. I have attempted to use the load_mgh.m and MRIread.m commands. The error returned is the following:
The system cannot find the path specified. ERROR: could not open /tmp/tmp5897063.mgh for reading ERROR: loading mri/wm.mgz as MGH
The load_mgh.m program is failing between lines 61 and 76. I don't know how your code is compressed, so I can't create a work around for this specific issue. Is this program only useful on a MAC or unix-based system? Is there another way to load in the compressed files into a Windows-based MATLAB? I have searched the relevant help threads, but have not found an answer to this specific problem.
Many thanks for your assistance!
Cheers, Adam
Adam T. Eggebrecht, Ph.D. Dept. of Radiology Washington University School of Medicine St. Louis, MO 314-362-6942
The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Hi Adam,
just do a global replace of "/tmp/" with "./" and it should work fine in windows.
cheers Bruce
at line in the .mg file
On Fri, 18 Mar 2011, Eggebrecht, Adam wrote:
Hello,
I have installed FreeSurfer on a Linux box and everything works great. However, our lab does most all of our processing in MATLAB in a Windows XP-64 platform. Within MATLAB, I am able to import the files existing within the /surf/ folder to work with and visualize the meshes. However, I am unable to load in any of the *.mgz files within the /mri/ folder. I have attempted to use the load_mgh.m and MRIread.m commands. The error returned is the following:
The system cannot find the path specified. ERROR: could not open /tmp/tmp5897063.mgh for reading ERROR: loading mri/wm.mgz as MGH
The load_mgh.m program is failing between lines 61 and 76. I don't know how your code is compressed, so I can't create a work around for this specific issue. Is this program only useful on a MAC or unix-based system? Is there another way to load in the compressed files into a Windows-based MATLAB? I have searched the relevant help threads, but have not found an answer to this specific problem.
Many thanks for your assistance!
Cheers, Adam
Adam T. Eggebrecht, Ph.D. Dept. of Radiology Washington University School of Medicine St. Louis, MO 314-362-6942
The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu