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