radial#
- mrinufft.density.radial(traj, *args, tol=1e-06, **kwargs)[source]#
Compute density compensation weights for isotropic radial trajectories.
Samples are grouped by their distance to the k-space center. Each group of samples shares the volume of the spherical shell (annulus in 2D) bounded by the midpoints to the neighboring radii. This yields weights proportional to \(|k|^{d-1}\), and works for both center-out and in-out trajectories.
- Parameters:
traj (array_like) – array of shape (M, 2) or (M, 3) containing the coordinates of the points.
tol (float) – Relative tolerance (w.r.t. the largest radius) under which two radii are considered equal. default 1e-6
*args – Dummy arguments to be compatible with other methods.
**kwargs – Dummy arguments to be compatible with other methods.
- Returns:
weights (array_like) – array of shape (M,) containing the density compensation weights.
.. seealso:: – This function is part of the density registry,
get_density(). You can find other registered functions in this registry below:Key
Function
"voronoi""radial""cell_count""pipe"