mmuckley / torchkbnufft

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

grid_size #70

Closed FredXL1 closed 1 year ago

FredXL1 commented 1 year ago

Hi @mmuckley, thank you for the wonderful work. I'm using the KbNufftAdjoint for spiral data and am wondering how do I disable the oversampling during gridding? I tried to set the grid_size the same as the im_size to avoid it but it doesn't seem to work. The final result still looks smaller than it should be. I tried various settings with no success....

FredXL1 commented 1 year ago

In short, how do I prevent any oversampling at all? Thank you.

mmuckley commented 1 year ago

Hello @FredXL1, the oversampling should be cropped before the image is returned to you.

I suspect the issue is with your k-space coordinates. Please be sure they're in the correct units of radians/voxel. If you just increase the k-space trajectory the object should be larger.

mmuckley commented 1 year ago

Closing as this seems to be resolved.