External Email - Use Caution        

Dear Haley,

 

The Matlab version of SynthSeg writes nifty files. You could run the FreeSurfer command to convert to mgz (and rename to aseg, along the way):

mri_convert synthseg.nii.gz aseg.mgz

 

Now: I don’t know if it’s possible to simply replace FreeSurfer’s aseg.mgz by this new aseg.mgz and keep running from there. I’ll defer to Doug and Bruce (CCed) on that.

 

Cheers,

 

/Eugenio

 

 

 

--

Juan Eugenio Iglesias

http://www.jeiglesias.com

 

From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Fischl, Bruce R.,PHD <BFISCHL@mgh.harvard.edu>
Date: Saturday, August 26, 2023 at 12:22 PM
To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] Import Matlab SynthSeg labels to FS

        External Email - Use Caution       

Hi Haley

I'm not sure I understand how you ran SynthSeg in matlab, but we supply .m files for reading/writing volumes (MRIread and MRIwrite). You probably want to read in the existing aseg to get the header, then replace the data with the segmentation you want and then write it out

Cheers
Bruce

-----Original Message-----
From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> On Behalf Of Haley O Higginbotham
Sent: Friday, August 25, 2023 11:06 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] Import Matlab SynthSeg labels to FS

        External Email - Use Caution       

Hi,
I experienced issues with segmentation (exclusion of large portion of cerebellum) and so used SynthSeg in Matlab (as the built-in mri_synthseg in freesurfer wasn’t working on my computer) to create the segmentation. Does anyone know how to import the resultant 3D categorical array containing the labels back into freesurfer (for the sake of further manipulating it in freeview and replacing the aseg file)?

Best,
Haley

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1O9U-l8rQMnLgUIorrDaC3ZH-I-kMSFXrFzKKjnh06D_LWZQqAoeJB654FjufofcUnnQpbMOPTZlAJbIAKETgLZ6dzH1DFul3Zn3sa_lb9O9cK-Gwr1Gqbicbz_h23rQgHPHBstQRrJpdTKUGpV40wUVOG9Ye1FEqDN9nABUtbW6NG7dSH6_4VYjlMpBCnTOuw6NAsZYdRJH3wtaI2UL1klEGO8R2mHkhTGI0wSTlz21ICZLQNCM3MsJ9WTXU637zN1IStzmpCb7QHSWd12fypw/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer