Re: [Freesurfer] Extracting vertex data from thickness maps after masking by sig.mgh

2017-08-01 Thread Elijah Mak
Thank you very much! :) Best Wishes, Elijah On 31 July 2017 at 15:37:38, Douglas Greve (gr...@nmr.mgh.harvard.edu) wrote: yes, mean across space. for vertex wise, you'll probably have to go into matlab, something like mask = MRIread('mask.mgh'); imask = find(mask.vol == 1); cc = MRIread('co

Re: [Freesurfer] Extracting vertex data from thickness maps after masking by sig.mgh

2017-07-31 Thread Douglas Greve
yes, mean across space. for vertex wise, you'll probably have to go into matlab, something like mask = MRIread('mask.mgh'); imask = find(mask.vol == 1); cc = MRIread('concat.mgh'); ccmat = fast_vol2mat(cc); cc_in_mask = ccmat(:,imask); On 7/31/17 10:25 AM, Elijah Mak wrote: Hi Doug, Than

Re: [Freesurfer] Extracting vertex data from thickness maps after masking by sig.mgh

2017-07-31 Thread Elijah Mak
Hi Doug, Thanks! mri_segstats —i concat.mgh  --seg mask.mgh --avgwf data 1) concat.mgh is the stack of individual surfaces in fsaverage space 2) mask.mgh is the binarised mask from the sig.mgh  3) --avgwf to produce the 2 columns of data (inside and outside) The values from the --avgwf represen

Re: [Freesurfer] Extracting vertex data from thickness maps after masking by sig.mgh

2017-07-31 Thread Douglas Greve
You can use mri_segstats with either the --sum option (for an input with one time point) or --avgwf (for multiple). Pass your mask with --seg. By default it will give you both outside the mask (first column) and inside the mask (second column). On 7/28/17 10:44 AM, Elijah Mak wrote: Hi Frees

[Freesurfer] Extracting vertex data from thickness maps after masking by sig.mgh

2017-07-28 Thread Elijah Mak
Hi Freesurfer Team, I have previously used mri_binarize to derive the mask.mgh from the sig.mgh after a first-level group comparison of cortical thickness. Now, I would like to extract the vertex data from from another modality surface within and outside the mask in individual subjects. Is ther