Re: [Freesurfer] Surface-based kernel operations

2017-11-29 Thread Bruce Fischl
Hi Victor the sphere files are lh.sphere and rh.sphere in the surf dir. You could write out the metric tensor (or first fundamental form) of the mapping to compute Euclidean distances from spherical coordinates, or probably just use the 3D euclidean distances on the sphere as the sampling is de

Re: [Freesurfer] Surface-based kernel operations

2017-11-29 Thread Victor Montal Blancafort
Thanks Bruce and Doug! Bruce, I think the option of the sphere is the one that better fits my needs, since I need to perform conv operations + derivatives. How should address this issue? I am not very familiar with sphere files (nor metric tensors) and do not know how to open/where to find those f

Re: [Freesurfer] Surface-based kernel operations

2017-11-28 Thread Douglas N Greve
read_surf.m will read in a surface including the nearest neighbors. the vertices are not ordered in an ordered way On 11/28/2017 11:38 AM, Victor Montal Blancafort wrote: > Dear Freesurfer experts, > > I would like to preform several operations in surface files using > spatial kernels (i.e mean

Re: [Freesurfer] Surface-based kernel operations

2017-11-28 Thread Bruce Fischl
Hi Victor the order of vertices/faces is somewhat arbirtry. If you want to write out a convolution I would do it on the sphere (and account for the metric tensor of the chart functions), or flatten and do it in the plane. cheers Bruce On Tue, 28 Nov 2017, Victor Montal Blancafort wrote: > Dea

[Freesurfer] Surface-based kernel operations

2017-11-28 Thread Victor Montal Blancafort
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 ope