NUFFT
Functional interface for the Non-Uniform Fast Fourier Transform.
torchlinops.functional.nufft
Functional interface for the Non-Uniform Fast Fourier Transform.
Computes the forward NUFFT of input data at specified non-uniform locations. Internally applies apodization, zero-padding, FFT, and interpolation.
| PARAMETER | DESCRIPTION |
|---|---|
x
|
Input data on a regular grid. The last
TYPE:
|
locs
|
Non-uniform sample locations. Each entry along the last dimension
corresponds to a spatial axis and should lie in
TYPE:
|
oversamp
|
Oversampling factor for the padded FFT grid. Default is 1.25.
TYPE:
|
width
|
Interpolation kernel width. Default is 4.0.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Tensor
|
NUFFT values evaluated at the non-uniform locations. |
Source code in src/torchlinops/functional/_nufft.py
torchlinops.functional.nufft_adjoint
nufft_adjoint(
x: Tensor,
locs: Float[Tensor, "... D"],
grid_size: tuple[int, ...],
oversamp: float = 1.25,
width: float = 4.0,
)
Functional interface for the adjoint NUFFT.
Grids non-uniformly sampled data back onto a regular grid. Internally applies adjoint interpolation (gridding), inverse FFT, cropping, and apodization correction.
| PARAMETER | DESCRIPTION |
|---|---|
x
|
Non-uniformly sampled data to be gridded.
TYPE:
|
locs
|
Non-uniform sample locations. Each entry along the last dimension
corresponds to a spatial axis and should lie in
TYPE:
|
grid_size
|
Desired output grid size for each spatial dimension.
TYPE:
|
oversamp
|
Oversampling factor for the padded FFT grid. Default is 1.25.
TYPE:
|
width
|
Interpolation kernel width. Default is 4.0.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Tensor
|
Gridded data on a regular grid of shape |