Try this:
1. Get vox2ras matrix for volume RAS (Call it T): mri_info --vox2ras-tkr volume.mgz
2. Get vox2ras matrix for scanner RAS (Call it S): mri_info --vox2ras volume.mgz
3. Compute M = S*inv(T)
4. Foreach xyz in label, NewXYZ = M*[X Y Z 1]'
doug
Joseph Barrington Keller wrote:
Hello, I'm trying to convert labels in volume RAS to volume scanner RAS in order to use them in another program. How would I accomplish this? Any advice on this subject would be greatly appreciated. Thanks
Joe _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu