tools.spirit_kernel#
- bartorch.tools.spirit_kernel()#
Return the SPIRiT kernel: each sample predicted from its neighbourhood in every coil.
Fitted by regularised least squares on every whole block of the calibration region: coil
c’s sample at a block’s centre from all samples of the block but itself.- Parameters:
calibration (torch.Tensor) – Fully sampled
(coils, *grid)k-space, the calibration region.size (int or tuple of int, default=5) – Kernel extent along each grid axis, odd.
lambda (float, default=1e-3) – Tikhonov weight, relative to the mean squared source.
- Returns:
(coils, coils, *size): entry[c, d, *offset]weighs coild’s sample atoffset - size // 2from the target. The target itself has weight zero.- Return type:
torch.Tensor
- Raises:
ValueError – If a kernel extent is even or exceeds the calibration region.