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

faster cal_density_compensation_function? #45

Closed wenqihuang closed 2 years ago

wenqihuang commented 2 years ago

Hi @mmuckley,

thank you for the great job for non-Cartesian MR reconstruction!

I'm currently working on cardiac MRI with radial acquisition. I found that the computation of density compensation takes much longer time than the nufft itself. Would it be possible to speed it up? Or any suggestions on that?

Thanks in advance!

mmuckley commented 2 years ago

Hello @wenqihuang, you can reduce the number of iterations. 10 is definitely erring on the side of accuracy and is probably too many.

wenqihuang commented 2 years ago

Thanks @mmuckley, it's faster now.