External Email - Use Caution        

You can also use something like
mri_segstats --seg aparc+aseg.mgz --id 1027 --mask overlay.nii.gz --sum summary.dat
you can set a threshold to the mask with --maskthresh

On 6/17/2023 7:45 AM, John Anderson wrote:

        External Email - Use Caution        

Let's say the red spot is overlay.nii.gz 
1) convert aparc+aseg from mgz to nii.gz using:
mri_convert aparc+aseg.mgz aparc+aseg.nii.gz
2) create mask between overlay and the atlas using fslmaths: 
fslmaths aparc+aseg.nii.gz -mas overlay.nii.gz overlay_overlap.nii.gz
3) use fslstats (or mris_cacl) to compute volume:
fslstats   aparc+aseg.nii.gz -k overlay_overlap.nii.gz -V
this output #voxels and volume

Alternatively, you might consider mri_seg_overlap MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://surfer.nmr.mgh.harvard.edu/fswiki/mri_overlap


On Fri, Jun 16, 2023 at 10:37 PM parsatad@student.ubc.ca <parsatad@student.ubc.ca> wrote:

        External Email - Use Caution        

Hello,
Hope you are doing well. I'm new to freesurfer so I was wondering if you could help me out with something please.
I'm looking for a simple way to find the size (i.e. volume in mm3) of overlap between a particular label (1027 ctx-lh-rostalmiddlefrontal) ) in an aparc+aseg file and a NIfTI volume file that can be overlayed on the aparc+aseg file. Please look at the attached file for a better visualization of what I'm describing.
I'd really appreciate it if you could point me in the right direction.
Thank you,
Parsa

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be 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 Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.massgeneralbrigham.org/complianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.massgeneralbrigham.org/complianceline> .

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer