deepmr.fft.apply_nufft_selfadj#
- deepmr.fft.apply_nufft_selfadj(image, toeplitz_kern, device=None, threadsperblock=128)[source]#
Apply self-adjoint Non-Uniform Fast Fourier Transform via Toeplitz Convolution.
- Parameters:
image (torch.Tensor) – Input image of shape
(..., ncontrasts, ny, nx)(2D) or(..., ncontrasts, nz, ny, nx)(3D).toeplitz_kern (GramMatrix) – Pre-calculated Toeplitz kernel.
device (str, optional) – Computational device (
cpuorcuda:n, withn=0, 1,...nGPUs). The default is ``None ``(same as interpolator).threadsperblock (int) – CUDA blocks size (for GPU only). The default is
128.
- Returns:
image – Output image of shape
(..., ncontrasts, ny, nx)(2D) or(..., ncontrasts, nz, ny, nx)(3D).- Return type: