ccf_streamlines.coordinates.coordinates_to_voxels#

ccf_streamlines.coordinates.coordinates_to_voxels(coords, resolution=(10, 10, 10))#

Find the voxel coordinates of spatial coordinates

Parameters
  • coords (array) – (n, m) coordinate array. m must match the length of resolution

  • resolution (tuple, default (10, 10, 10)) – Size of voxels in each dimension

Returns

voxels – Integer voxel coordinates corresponding to coords

Return type

array