Why are you converting it to the volume? You can load the surf-based file in matlab with ces = MRIread('ces.nii.gz'); You can load the label with labe_read.m (or read_label.m, can't remember)
On 3/22/2020 12:15 PM, Star Xi wrote:
External Email - Use Caution
Hi FS experts,
I’m processing the task related fMRI data and want to extract the 100 most strongly activated voxels with in each of the visual areas (like V1-V3, V3A, MT etc.). It seems to I need to do the ROI analysis using matlab. I meet some problems when convert files from surface space to volume space.
Here’s my procedures:
- For each individual, convert cespct.nii to volume space
(individual space) mri_vol2vol —mov ces.nii.gz --reg sub/bold/register.lta --fstarg --interp nearest --o cespct.anat.nii (dimension 256*256*256) However, when I use MRIread to import the file, I find the values in cespct.anat.nii are all 0.
- convert label to volume space (individual space)
I want to convert label to the individual space (mri_label2label --outmask) and then convert it to volume space (mri_vol2vol). mri_label2label --srclabel lh.V3A.label --srcsubject fsaverage --trglabel lh.v3a.sub.label --trgsubject sub --regmethod surface --hemi lh --outmask lh.v3a.sub.nii mri_info lh.v3a.sub.nii (dimension is 144775x1x1, not 163842x1x1) I’m wondering how can I have a mask in subject’s anatomy space using a label ? Is there anything wrong during the transformation? Any suggestions will be appreciated ! THANK YOU! Star
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu