Re: [Freesurfer] extracting values of each voxel within an ROI

2020-03-20 Thread Nasiriavanaki, Zahra
Hi Doug Thank you very much for your reply. I am doing these analysis in each subject’s self space, and my ROI is a handmade cortical label in ascci format. In this case, would the indices be the vertex Id in the label file? also, instead of f=MRIread('f.nii.gz’); can I use “sig.nii.gz” to get

Re: [Freesurfer] extracting values of each voxel within an ROI

2020-03-20 Thread Douglas N. Greve
Do you mean all the voxels separately? I don't think I have anything, but you can do it in matlab with something like seg = MRIread('seg.nii.gz'); indices= find(seg.vol == IndexOfYourROI); f = MRIread('f.nii.gz'); fmat = fast_vol2mat(f); froi = fmat(:,indices); this assumes taht f.nii.gz and

[Freesurfer] extracting values of each voxel within an ROI

2020-03-18 Thread Nasiriavanaki, Zahra
Hi all Is there any command for extracting the fmri activation from all voxels in an ROI? I know I can use funcroi-config, funcroi-sess and funcroi-table-sess to extract the average activation in a specific ROI from a specific contrast. But what if I want to extract the values of each voxel