apply_toeplitz_kernel#
- mrinufft.operators.apply_toeplitz_kernel(image: NDArray, toeplitz_kernel: NDArray, padded_array: NDArray | None = None, paired_batch: bool = False) NDArray[source]#
Apply the 2D or 3D Toeplitz kernel to an image using FFT.
- Parameters:
image (NDArray) – The input 2D or 3D image to which the Toeplitz kernel will be applied.
toeplitz_kernel (NDArray) – The 2D or 3D Toeplitz kernel in the frequency domain.
padded_array (NDArray | None, optional) – An optional pre-allocated array for padding the image. If None, a new array will be created. Default is None.
paired_batch (bool, optional) – If True, pairs the batch dimension of the image with the toeplitz_kernel. Default is False, ie the same kernel is applied to all images in the batch.
- Returns:
The result of applying the Toeplitz kernel to the image.
- Return type:
NDArray
See also
compute_toeplitz_kernelCompute Toeplitz kernel to be used with this function.