View source: R/transforms_convert.R
| volume.geometry | R Documentation |
Transformation matrices of the voxel-to-voxel kind can only be interpreted relative to the volumes they relate, so the conversion functions need the geometry of those volumes: their dimensions, voxel sizes and the matrix that maps voxel indices to RAS coordinates.
The voxel indices are zero-based and the origin of the RAS space is the one used by FreeSurfer for MGH
headers and by NIfTI for the sform, i.e. this is the same convention as mghheader.vox2ras.
volume.geometry(volume)
volume |
an |
named list with the entries 'vox2ras' (4x4 numerical matrix), 'dim' (integer vector of length 3) and 'voxelsize' (numerical vector of length 3).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.