mr2.algorithms.dcf.dcf_2d3d_voronoi

mr2.algorithms.dcf.dcf_2d3d_voronoi(traj: Tensor) → Tensor[source]

Calculate sample density compensation function using Voronoi method.

Each sample’s weight is the area of its Voronoi cell in 2D or its volume in 3D. Large boundary cells are detected as outliers and assigned the mean of the largest 1% of non-outlier weights. Nearly coincident 3D points are treated as repeated samples and share their cell weight.

This function operates on a single other sample. See also DcfData and smap.

Parameters:

traj (Tensor) – k-space positions (2 or 3, k2, k1, k0)

Returns:

Density compensation values with the trajectory dtype and device, shaped (k2, k1, k0).