Help with gridding 1D case #93
Replies: 1 comment 1 reply
-
Hello @schmidtijoe, the fftshift is normally built into the phase of the output data from the interpolation operation: torchkbnufft/torchkbnufft/_nufft/interp.py Lines 679 to 686 in 20c45a2 If it helps, you can see how the interpolation operation is wrapped with the inverse FFT here: torchkbnufft/torchkbnufft/functional/nufft.py Lines 194 to 260 in 20c45a2 So once you have your coordinates and apply interpolation, the relationship between the image and the data should be a simple FFT. Let me know if this helps. Also might be helpful to see an image of what you mean by "pushed the k-space center towards the edges" to help any further debugging. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks for the nice package!
I have a bit of a different use-case. I got a sequence with various non-uniform readout line samplings but matching phase encodes. If i suppose the phase encode errors are negligible, i basically just want to grid all of my read lines in 1D. Since i need another recon method afterwards i was only looking at the
KbInterpAdjoint
method of the interpolation module.The interpolation seems to work, however, it appears that the output pushed the k-space center towards the edges and i appear to get edge artifacts for a partial fourier region which is not acquired (i guess this is acceptable since using interpolation to fill the non acquired data with 0s is not the intended use). When i am simply using a torch.fft.ifftshift it seems to do the job, i was just wondering if i am missing something or should fftshift the input prior to application of the interpolation. Since its not mentioned in its respective doc.
Any hints are welcome !
All the best!
Beta Was this translation helpful? Give feedback.
All reactions