How to transform voxel data to fslr surface vertex data?
Dear surfplot developers,
I am new to this kind of surface plot and have very little knowledge about it. I noticed that in nilearn, there is a function surf.vol_to_surf can help the user transform voxel data to surface vertex. But the the shape of surf_mesh template does not match the 32k input requirement in surfplot? How should i transform the MNI voxel data to meet the input requirement of surfplot? Thanks in advance.
I have never used nilearn. But I have expericence using Workbench to convert volume data into surface data, which might be helpful to you.
For example, if you have subj_01's T1w.nii.gz file. Then use Freesurfer's command recon-all, you will get a set of surface files. Just like the mid file represents the middle layer surface within the gray matter. (If you need a 32k surface file, you will align the individual surface file to the standard template 32k surface file).
Then, using Workbench's command:
wb_command -volume-to-surface-mapping \
your_input_volume.nii.gz \
subj_01.L.midthickness.native.surf.gii \
output_surface.L.func.gii \
-trilinear
It will convert the volume data your_input_volume.nii.gz to the surface dataoutput_surface.L.func.gii.
: )