[SUMA] 2d surface to 3d

For my connectivity analyses I need to take into account the cortical distance of voxels relative to each other. One can obtain the flat surface map in SUMA to get the estimated cortical distance. I would now ideally want to label this 2d map with x/y coordinates and convert it back to 3d volume space to overlay this mask with my functional data.

Any help greatly appreciated.



There is a function SurfDist to calculate distance along surfaces; a brief excerpt from the help:

       Output shortest distance between NODEPAIRS along
       the nesh of SURFACE, or the Euclidian distance.

It seems like that might be the more appropriate distance for what you want (“cortical distance”)?