ccf_streamlines.morphology.transform_coordinates_to_volume#
- ccf_streamlines.morphology.transform_coordinates_to_volume(coords, volume_shape=(1320, 800, 1140), resolution=(10, 10, 10))#
Create a volume with counts of points.
- Parameters
coords ((N, 3) array) – Coordinates of points
volume_shape (3-tuple of ints, default (1320, 800, 1140)) – Shape of target volume in voxels
resolution (3-tuple of ints, default (10, 10, 10)) – Size of voxels in microns
- Returns
volume – Volume with shape volume_shape with counts of points in each voxel
- Return type
array