One way to do it is with mri_binarize:
mri_binarize --i aseg.mgz --min 1.5 --max 2.5 --o wm-lh.mask.nii
This will find all the voxels whose value is between 1.5 and 2.5 and set
them to 1 in the output. In this case, it will make a binary mask of the
left cerebral white matter as that has a code of 2 (from
FreeSurferColorLUT.txt).
The output can be saved in any mri_convert output format (ie, mgh, mgz,
analyze, nifti, etc).
doug
Sasha Wolosin wrote:
Dear all,
Does aseg save out masks of the various subcortical regions measured?
If so, is it possible to visualize and/or edit these in tkmedit/scuba,
or export them to an external format?
Thanks,
Sasha
Disclaimer:
The materials in this e-mail are private and may contain Protected Health
Information. Please note that e-mail is not necessarily confidential or secure.
Your use of e-mail constitutes your acknowledgment of these confidentiality and
security limitations. If you are not the intended recipient, be advised that
any unauthorized use, disclosure, copying, distribution, or the taking of any
action in reliance on the contents of this information is strictly prohibited.
If you have received this e-mail in error, please immediately notify the sender
via telephone or return e-mail.
_______________________________________________
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