mrinufft.density#

Density compensation methods.

Tip

This module has a registry builtin.

You can get easy access to the functions below by calling get_density(<key>) or with get_density(<key>, *args, **kwargs). Here are the function available from the registry:

Key

Function

"voronoi"

voronoi (traj, *args, **kwargs)

"cell_count"

cell_count (traj, shape, osf=1.0)

"pipe"

pipe (traj, shape, backend=’gpunufft’, **kwargs)

Functions

cell_count

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

flat_traj

Decorate function to ensure that the trajectory is flatten before calling.

get_density

Get the density function from its name.

pipe

Compute the density compensation weights using the pipe method.

voronoi

Estimate density compensation weight using voronoi parcellation.