You can use mri_binarize with the --match option  to spec the index, eg:

mri_binarize --i aseg.mgz --match 17 --o hippo.lh.nii

doug

Martin Ystad wrote:

Hi, I'd like to create binary masks in the nifti-format from each of the subcortical segmentations in freesurfer, separately (one for hippocampus, one for thalamus, and so forth..). Is there any way to do this automatically from the command line?

Thanks,
Martin Ystad
Ph.D. candidate,
University of Bergen

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer



--
Douglas N. Greve, Ph.D.
MGH-NMR Center
[EMAIL PROTECTED]
Phone Number: 617-724-2358 Fax: 617-726-7422

In order to help us help you, please follow the steps in:
surfer.nmr.mgh.harvard.edu/fswiki/BugReporting


_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Reply via email to