use mri_convert
check this link
https://surfer.nmr.mgh.harvard.edu/pub/docs/html/mri_convert.help.xml.html

Azeez Adebimpe




Date: Fri, 31 May 2013 13:23:20 +0200
From: anna.b.josefson@gmail.com
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] Conversion

Dear FreeSurfer users!

 I am new to Freesurfer, and I have succesfully managed to run recon-all on my data, for every subject.

Now I plan to use the output  - some of the different cortical and subcortical brain structures as ROI's in my SPM analyses.

Then I would have to convert from freesurfer space to SPM space via the coordinates.

And - I would also have to  convert from .mgz to .nii data format.

Does any have any tips on how to do this? Or a script?

Kind Regards,
Anna B. Josefson

_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.