Nick, Thanks a lot. That is just what I am looking for, and it is working perfect.
Burak
Nick Schmansky wrote:
Burak,
I've update mris_convert so that it outputs the normal vectors of each vertex of the surface. You can get this binary for Linux here:
ftp://surfer.nmr.mgh.harvard.edu/pub/dist
Copy the file mris_convert.gz to your $FREESURFER_HOME/bin, then type:
gunzip mris_convert.gz chmod a+x mris_convert
Then type 'mris_convert' for help. The new flag is '-n', so example usage is:
mris_convert -n lh.white lh.white.normals.asc
Recall that:
mris_convert lh.white lh.white.asc
will give you the file lh.white.asc containing the xyz of each vertex (plus face info), so of course this file is paired with lh.white.normals.asc (the difference being that this file has the normal vectors for each vertex).
Hope this is what you needed.
Nick
On Fri, 2007-05-04 at 18:46 +0200, burak ozkalayci wrote:
Hi all,
I want to get an ascii file listing the normal vectors of each vertex of the surface (white or pial). In http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg02210.html mri_surf2surf is adviced to used but I could not find any example usage for creating vertex normals. And I appreciate any help on converting the output of the mri_surf2surf to ascii file.
One more question about the vertex normals. using tksurfer to see the surfaces, the normals of the selected vertices are printed on the console. to use mri_surf2surf the sphere.reg files are needed and they are created at the 3rd step of reconall. If there is any straightway to get those vertex normals from the surface definition like tksurfer do, I prefer it since I do not want to wait for the reconall 3.
Thanks in advance.
Burak _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer