Use mri_segstats with the --slabel option, eg, mri_segstats --slabel subject $SUBJECTS_DIR/subject/label/lh.cortex --id 1 --i X.mgh --avgwf meanX.dat
On 05/10/2017 08:45 AM, Damien MARIE wrote: > Hi, > > I’ve a .mgh that is a volume projected on the surface of the same subject at > mid-thickness (output of mri_vol2surf) . > > I would like to extract the mean hemipheric value in this X.mgh. > > I guess it is possible with mris_anatomical stats but probably my command > line is incorrect (see below). > > Any advices? > > Thank you and best, > > Damien > > > > mris_anatomical_stats ct_pp1_N4_bet_MP2RAGEcorr -a > ct_pp1_N4_bet_MP2RAGEcorr/label/lh.aparc.annot lh R1.mgh > > computing statistics for each annotation in > ct_pp1_N4_bet_MP2RAGEcorr/label/lh.aparc.annot. > reading volume > /home/damien/bin/freesurfer6/subjects/ct_pp1_N4_bet_MP2RAGEcorr/mri/wm.mgz... > reading input surface > /home/damien/bin/freesurfer6/subjects/ct_pp1_N4_bet_MP2RAGEcorr/surf/lh.R1.mgh... > ERROR: MRISread: file > '/home/damien/bin/freesurfer6/subjects/ct_pp1_N4_bet_MP2RAGEcorr/surf/lh.R1.mgh' > has 0 vertices! > Probably trying to use a scalar data file as a surface! > > > _______________________________________________ > 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.