I've also just modified mri_surf2surf to extract the surface normals at each vertex. You can get the new version from:
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_surf2surf
There's an example in the --help on how to run it.
doug
Bruce Fischl wrote:
sure. You can convert the surface into ascii with mris_convert or load it directly into matlab with read_surf. The normal is then the cross product of two of the legs of each triangle. Sorry, I don't remember the ordering but it should be obvious if you have it wrong. The indices of the vertices in the surfaces are invariant, so the same index can be used to find the corresponding surface on the ?h.white and ?h.pial surfaces.
Bruce
On Wed, 18 Jan 2006, XJ Kang wrote:
Hi,
Anywhere in the "surf" directory I can find the normal direction of each node on the GM/WM surface? Or anyway I can calculate the normal direction from the surface files? How about the direction between the correspoding two points on the GM/WM surface and pial surface? Thanks.
XJ Kang _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer