Distance matrix (geodesic distance)

I am trying to compute the distance matrix for all the vertices in the fsaverage surface for a study. I wanted to know if there is a way to compute that and store in a file.

I tried using the connector work bench
“wb_command -surface-geodesic-distance fsaverage_lh_inflated.surf.gii -all-vertices distances.lh.func.gii”

as well as Freesurfer
“mris_compute -d fsaverage lh.sphere.reg lh.fsaverage.gii”

But both to no avail

I think that the tvb-gdist package has this feature.
Best,
Bertrand

1 Like

Ahoi hoi @Reubebe,

did you try out the Brainsmash package yet? It has dedicated functions to compute distance matrices.

HTH, cheers, Peer

1 Like

SurfDist in AFNI computes geodesic distance with options to specify input from/to pairs of vertices.

1 Like