Counting incidence of tracks in voxels of volume
Counts of points in tracks that pass through voxels in volume
We find whether a point passed through a track by rounding the mm point values to voxels. For a track that passes through a voxel more than once, we only record counts and elements for the first point in the line that enters the voxel.
Parameters : | tracks : sequence
vol_dim : sequence length 3
vox_sizes : sequence length 3
return_elements : {True, False}, optional
|
---|---|
Returns : | tcs : ndarray shape vol_dim
tes : ndarray dtype np.object, shape vol_dim
|