mmuckley / torchkbnufft

A high-level, easy-to-deploy non-uniform Fast Fourier Transform in PyTorch.
https://torchkbnufft.readthedocs.io/
MIT License
204 stars 44 forks source link

Usage examples #31

Open qbit- opened 3 years ago

qbit- commented 3 years ago

Thanks for the great effort of bringing NUFFT to Pytorch! The current version of the code is geared towards image analysis, and MRI specifically. As such, it is hard to grasp the meaning of arguments and their names from the examples. It would be great to have a basic 1D example of forward/inverse NUFFT-I/NUFFT-II to broaden user audience

mmuckley commented 3 years ago

Great idea - do you have a specific example that might be useful for people executing 1D NUFFTs? If not, I could just throw something elementary together.

qbit- commented 3 years ago

I'm experimenting with audio processing, the entire example is pretty complicated to describe it in full. It would be helpful to have something like the examples on the finufft page here: minimal interface and the mathematical description of what it does. By the way, which definition of the NUFFT torchkbnufft supports?

kylematoba commented 2 years ago

A good self-contained example would be to reconcile against the PyTorch fft module. E.g. check that interpolated points are close to the exact value computed over a finer grid.

mmuckley commented 2 years ago

To me this sounds great @kylematoba - just don't have time to implement it right now myself due to other projects... If you open a PR would be happy to consider it!