cell_count

Contents

cell_count#

mrinufft.density.geometry_based.cell_count(traj, shape, osf=1.0)[source]#

Compute the number of points in each cell of the grid.

Parameters:
  • traj (array_like) – array of shape (M, 2) or (M, 3) containing the coordinates of the points.

  • shape (tuple) – shape of the grid.

  • osf (float) – oversampling factor for the grid. default 1

Returns:

weights – array of shape (M,) containing the density compensation weights.

Return type:

array_like