Closed dipterix closed 4 years ago
I think the function freesurferformats::mghheader.vox2ras.tkreg()
already computes this from the header, but I'm on mobile right now, will need to verify later.
Or is it important to you that it exists as a field in the header structure?
I see. Thanks I didn't realize there was a function to calculate that. This is good enough.
Freesurfer has
vox2ras-tkr
matrix, which has the sameMdc
matrix asvox2ras_matrix
but different location/center.For example, I can read in
mgz
file with headersNorig
matrix (i.e.vox2ras_matrix
)Torig
matrix which isvox2ras-tkr
Reference: https://surfer.nmr.mgh.harvard.edu/fswiki/CoordinateSystems