Dear Freesurfer experts,

I would like to preform several operations in surface files using spatial kernels (i.e mean value in a 3x3 grid, nearest neighbour value, etc). In summary, perform operations in the surface such as a 2D matrix/image.

Is it possible to do it with Freesurfer? I tried to open the surfaces using Python and Matlab, but as far as I am concerned, the vertex orders does not follow any "continous" or topological order.

Any insight would be very appreciated.
Thanks in advance!

Victor M