modelarrayio.utils.mif.gather_fixels

modelarrayio.utils.mif.gather_fixels(index_file, directions_file)[source]

Load the index and directions files to get lookup tables.

Parameters:
  • index_file (str) – Path to a Nifti2 index file

  • directions_file (str) – Path to a Nifti2 directions file

Returns:

  • fixel_table (pandas.DataFrame) – DataFrame with fixel_id, voxel_id, x, y, z

  • voxel_table (pandas.DataFrame) – DataFrame with voxel_id, i, j, k