Hi Freesurfer Help,
I am trying to get the wm.mgz file into matlab. Is there a way to change the mgz into dicom format, or any othe matlab compatible formats?
Thanks,
Camilo
Hi Camilo
[v,M,p] = load_mgh('wm.mgz');
will load the volume (v) into matlab, in addition to the vox2ras matrix M and the MR parameters p. The .m file is in $FREESURFER_HOME/matlab/load_mgh.m.
cheers, Bruce
On Fri, 24 Mar 2006 camilo@nmr.mgh.harvard.edu wrote:
Hi Freesurfer Help,
I am trying to get the wm.mgz file into matlab. Is there a way to change the mgz into dicom format, or any othe matlab compatible formats?
Thanks,
Camilo
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Or
v = MRIread('wm.mgz'); v is a struct, and v.vol will give you the volume.
Bruce Fischl wrote:
Hi Camilo
[v,M,p] = load_mgh('wm.mgz');
will load the volume (v) into matlab, in addition to the vox2ras matrix M and the MR parameters p. The .m file is in $FREESURFER_HOME/matlab/load_mgh.m.
cheers, Bruce
On Fri, 24 Mar 2006 camilo@nmr.mgh.harvard.edu wrote:
Hi Freesurfer Help,
I am trying to get the wm.mgz file into matlab. Is there a way to change the mgz into dicom format, or any othe matlab compatible formats?
Thanks,
Camilo
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu