I would probably map the mask to the surface,eg, mri_vol2surf --regheadersubject --hemi lh --projfrac 0.5 --i scan500_std/mri/500_lobes_1-in-fs.mgz --interp nearest --o lh.mask.mgz
The run mri_segstats --seg lh.mask.mgz --id 1 --accumulate --i lh.volume --o lh.vol.stats On 01/17/2017 11:24 AM, Eli Johnson wrote: > > Hi all, > > > I am trying to extract the volume from a FreeSurfer segmented scan > within a pre-registered mask region, but only within the cortex, and > wanted to check my command. > > > The mask is a binary mask (value of 1 across the mask) and is in the > same space as the orig.mgz file. It covers part of the frontal lobe. > > > I have run: > > mri_segstats --seg ./scan500_std/mri/500_lobes_1-in-fs.mgz --id 1 --i > ./scan500_std/mri/aparc+aseg.mgz --accumulate --sum test.reg1.sum > > > This has output a text file with a value of 495563 mm3 in the last row. > > > I wanted to check whether this is the correct command to extract only > cortical GM within this mask. If this is correct, should be adding > other flags (e.g. -pv). I have searched the mailing list and the > options for mri_segstats, but I'm not 100% confident in what I've done > - so any tips would be greatly appreciated. > > > Many thanks > Eli > > > > _______________________________________________ > 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: https://gate.nmr.mgh.harvard.edu/filedrop2 www.nmr.mgh.harvard.edu/facility/filedrop/index.html Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/ _______________________________________________ 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.