Hi,

Two issues related to patch files.

Issue number 1:

If I generate an ascii flat patch file like so:

$ bin_patch=fsaverage/surf/lh.cortex.patch.flat
$ mris_convert -p $bin_patch lh.cortex.patch.flat.asc

And then inspect the file that gets created:

$ head lh.cortex.patch.flat.asc
#!ascii version of patch fsaverage/surf/lh.orig. The 1st index is not a
vertex number
149297 296943
1 vno=0
-60.013611  4.446770  0.000000
2 vno=1
-56.163204  88.759064  0.000000
3 vno=2
-112.137077  -18.977211  0.000000
4 vno=3
-34.436668  -72.297958  0.000000

This is sort of annoying if I want to read it into Matlab, etc. (actually
Python) using routines that expect an array of numbers.  Is there any way to
suppress the intercoordinate output?

Issue number 2:

Even if I get around the text file formatting issues, I run into some
problems when I try and generate meshes with the resulting data.  It seems
like the triangles component of the surface makes references to vertex ids
that don't exist anymore.  In other words, the triangles array contains
values that are larger than the number of rows in the vertices array.

Obviously I'm doing things that aren't officially supported by Freesurfer
there, but does that jive with your knowledge of how the patch files are
written?

Thanks!

Michael
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Reply via email to