mrpro.algorithms.dcf.dcf_2d3d_voronoi
- mrpro.algorithms.dcf.dcf_2d3d_voronoi(traj: Tensor) Tensor [source]
Calculate sample density compensation function using Voronoi method.
This function computes the DCF by determining the area around each point in k-space using the Voronoi tessellation. Points at the edge of k-space are detected as outliers and are assigned the area of the 1% largest DCF values.
The Voronoi tessellation assigns each point in k-space a region based on the proximity to its nearest neighbors. The DCF is then computed based on the inverse of the area of these regions.
This function operates on a single
other
sample. See alsoDcfData
andsmap
.- Parameters:
traj (
Tensor
) – k-space positions(2 or 3, k2, k1, k0)
- Returns:
density compensation values
(1, k2, k1, k0)