[Freesurfer] Transformation from volume index to vertex index

2008-12-19 Thread Yunjie Tong
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. Than

Re: [Freesurfer] Transformation from volume index to vertex index

2008-12-19 Thread Doug Greve
if you have the voxel index (col, row, slice) then you can: V2R = [ -1.00.00.0 128.0 0.00.01.0 -128.0 0.0 -1.00.0 128.0 0.00.00.01.0 ] crs = [col row slice]'; xyz = V2R[crs+1; 1]; then f

Re: [Freesurfer] Transformation from volume index to vertex index

2008-12-19 Thread Bruce Fischl
Hi Yunjie, check out: http://surfer.nmr.mgh.harvard.edu/fswiki/CoordinateSystems?action=AttachFile&do=view&target=fscoordinates.ppt there is also more coordinate system info on the wiki that should let you know what you need. cheers, Bruce On Fri, 19 Dec 2008, Yunjie Tong wrote: Hi free

[Freesurfer] some questions

2008-12-19 Thread Siddharth Srivastava
Hi everyone, what is the difference in functionality between the mri_* commands and the mris_* commands? How does the mris_fill command maintain the distinction between the left and the right hemisphere? I see only one filled.mgz having 2 labels? does it write

Re: [Freesurfer] some questions

2008-12-19 Thread Bruce Fischl
Hi Sid, the mri_* command in general operate on volumes and the mris_* commands on surfaces. mri_fill uses different label for the lh and rh, and one call will fill both hemispheres, but if you mean mris_fill, then it takes any surface and fills the interior, so it would only do 1 hemi at a ti

Re: [Freesurfer] some questions

2008-12-19 Thread Siddharth Srivastava
Hi Bruce, Thanks a lot. In case mris_fill operates on one hemisphere at a time, i would expect there to be 2 filled.mgz, one per hemisphere. At what stage (and how) are they combined? Yes, i did mean mri_morphology, sorry for the typo. thanks again,