You can use mri_binarize, something like

mri_binarize --i sig.mgh --min 3 --o mask.mgh

Note that sig.mgh is a signed quantity. If you want it unsigned, then 
use --abs above

doug




Miranka Wirth wrote:
> Dear Freesurfers,
>
> I would to like to generate a binary surface-based mask from the GLM
> output file (e.g., sig.mgh) the way that vertices above a certain p
> threshold are set to 1 and below this threshold to 0.  I believe I can
> use this mask in the mri_glmfit procedure?
>
> Thank you for helpful information
> Miranka
> _______________________________________________
> 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
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358 
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: www.nmr.mgh.harvard.edu/facility/filedrop/index.html

_______________________________________________
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.

Reply via email to