eigenstrapping.geometry.get_tkrvox2ras

eigenstrapping.geometry.get_tkrvox2ras(voldim, voxres)[source]

Generate transformation matrix to switch between tetrahedral and volume space.

Parameters:
  • voldim (array (1x3)) – Dimension of the volume (number of voxels in each of the 3 dimensions)

  • voxres (array (!x3)) – Voxel resolution (resolution in each of the 3 dimensions)

Returns:

T – Transformation matrix

Return type:

array (4x4)