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
yes, use mri_extract_label. The indices for the different labels are given in $FREESURFER_HOME/FreeSurferColorLUT.txt (if you specify the output volume as having a .nii extension it will write it in Niftii) On Mon, 20 Oct 2008, 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
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
freesurfer@nmr.mgh.harvard.edu