make sure you're not using a 0-based index with matlab

Yunjie Tong wrote:

Hi Doug and Bruce,

Thanks for your answers. One more question, why the vertex RAS of the same spot on the brain given in TkSurfer is not the ones I read by Matlab program freesurfer_read_surf?

The commands I am using are:

[vertex_coords, faces] = freesurfer_read_surf('tutorial_subjs/subject/surf/lh.inflated');

tksurfer subject lh inflated

Thanks,


YJ



if you have the voxel index (col, row, slice) then you can:

V2R = [
-1.00000    0.00000    0.00000  128.00000
 0.00000    0.00000    1.00000 -128.00000
 0.00000   -1.00000    0.00000  128.00000
 0.00000    0.00000    0.00000    1.00000 ]

crs = [col row slice]';

xyz = V2R[crs+1; 1];

then find the vertex whose xyz coors are closest to xyz



Yunjie Tong wrote:

Hi freesurfer experts,


I have a single subject anatomical data in freesurfer. If I know the volume index of a point on the surface of the cortex ( from T1.mgz in TkMedit), how can I find out the corresponding vertex index or the vertex RAS in TkSurfer. Thanks. BTW, I am using matlab.


Thanks,


Yunjie

_______________________________________________

Freesurfer mailing list

Freesurfer@nmr.mgh.harvard.edu <mailto:Freesurfer@nmr.mgh.harvard.edu>

https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer




--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu <mailto:gr...@nmr.mgh.harvard.edu>
Phone Number: 617-724-2358 Fax: 617-726-7422

In order to help us help you, please follow the steps in:
surfer.nmr.mgh.harvard.edu/fswiki/BugReporting

------------------------------------------------------------------------

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


--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358 Fax: 617-726-7422

In order to help us help you, please follow the steps in:
surfer.nmr.mgh.harvard.edu/fswiki/BugReporting


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

Reply via email to