Dear all,
I am studying HCP Pipelines systematically recently, and I have some confusion about some details of FreeSurfer2CaretConvertAndRegisterNonlinear.sh in PostFreeSurfer.
1. Transform surface files from native space to MNI space:
${CARET7DIR}/wb_command -surface-apply-warpfield "$T1wFolder"/"$NativeFolder"/"$Subject"."$Hemisphere"."$Surface".native.surf.gii "$InverseAtlasTransform".nii.gz
"$AtlasSpaceFolder"/"$NativeFolder"/"$Subject"."$Hemisphere"."$Surface".native.surf.gii -fnirt "$AtlasTransform".nii.gz
What exactly is this line doing? Is it to transform the coordinate of every vertex in the surface file from native to MNI space (or other more standard description)?
2. Get the sphere surface file registered to the fs_LR 164k space
${CARET7DIR}/wb_command -surface-sphere-project-unproject "$AtlasSpaceFolder"/"$NativeFolder"/"$Subject"."$Hemisphere".sphere.reg.native.surf.gii "$AtlasSpaceFolder"/fsaverage/"$Subject"."$Hemisphere".sphere."$HighResMesh"k_fs_"$Hemisphere".surf.gii "$AtlasSpaceFolder"/fsaverage/"$Subject"."$Hemisphere".def_sphere."$HighResMesh"k_fs_"$Hemisphere".surf.gii "$AtlasSpaceFolder"/"$NativeFolder"/"$Subject"."$Hemisphere".sphere.reg.reg_LR.native.surf.gii
The output file ("$AtlasSpaceFolder"/"$NativeFolder"/"$Subject"."$Hemisphere".sphere.reg.reg_LR.native.surf.gii) is the sphere surface (converted to MNI standard space) registered to the fs_LR 164 template, right?
3.RegSphere="${AtlasSpaceFolder}/${NativeFolder}/${Subject}.${Hemisphere}.sphere.MSMSulc.native.surf.gii"
What does $RegSphere standard for exactly?
4. The following code:
#Create downsampled fs_LR spec file in structural space.
for Surface in white midthickness pial ; do
${CARET7DIR}/wb_command -surface-resample "$T1wFolder"/"$NativeFolder"/"$Subject"."$Hemisphere"."$Surface".native.surf.gii ${RegSphere} "$AtlasSpaceFolder"/fsaverage_LR"$LowResMesh"k/"$Subject"."$Hemisphere".sphere."$LowResMesh"k_fs_LR.surf.gii BARYCENTRIC "$T1wFolder"/fsaverage_LR"$LowResMesh"k/"$Subject"."$Hemisphere"."$Surface"."$LowResMesh"k_fs_LR.surf.gii
...
done
I don't fully understand why ${RegSphere} is used for the second parameter in wb_command -surface-resample. What I understand is that ${RegSphere} is in the MNI standard space, not the native space. Is there something wrong with my understanding? And could you explain it further, please?
Thanks for your reply.
Best,
Zack
--
You received this message because you are subscribed to the Google Groups "HCP-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hcp-users+...@humanconnectome.org.
To view this discussion on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/0cdcd130-6c8f-48c9-9b52-076de93d8549n%40humanconnectome.org.
Hi Tim,
Thanks for your very detailed answer!
1. I used wb_command -file-information to verify the number of triangles and vertices of the two files. I also found that the vertex indexes that make up each triangle are the same (verified using Matlab's gifti function).
At the same time, I still have a few basic questions.
2. Where is the "precomputed deformation" you mentioned stored, is there some way to visualize it for better understanding?
3. How should I understand the vertex coordinates in the surface files? Or in other words, can I think that the surface files (pial, white and midthickness) under "$AtlasSpaceFolder", "$AtlasSpaceFolder"/"$NativeFolder", and "$AtlasSpaceFolder"/fsaverage_LR"$LowResMesh"k describe the surface of "$AtlasSpaceFolder"/T1w_restore_brain.nii.gz, while the surface files in "$T1wFolder"/"$NativeFolder", and "$T1wFolder"/fsaverage_LR"$LowResMesh"k describe the surface of "$T1wFolder"/T1w_acpc_dc_restore_brain.nii.gz?
