tools.spirit_weights

Contents

tools.spirit_weights#

bartorch.tools.spirit_weights()#

Return the image-domain form of a SPIRiT kernel on a grid: the coil mixing at every voxel.

Applying the kernel to centred, unitary k-space of shape (coils, *grid) equals transforming to the image, mixing the coils at each voxel by these weights, and transforming back.

Parameters:
  • kernel (torch.Tensor) – (coils, coils, *size), as spirit_kernel() returns it.

  • grid (tuple of int) – The k-space grid, each axis at least the kernel’s extent.

Returns:

(coils, coils, *grid): output coil, input coil, voxel.

Return type:

torch.Tensor