-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shifting center after resampling real array #53
Comments
The reason is that we do resample around the first pixel (1,1, ...). Try |
Maybe you could add a simple example to this documentation page? |
Thanks! It solved the problem. |
We could add it as a flag |
I agree. Such a flag would really be useful. However, we may think about how to implement this best. Two extra fftshift sound unnecessarily complex. |
On the other hand, the whole algorithm calculates in a O(n*log(n)) complexity whereas a fftshift is only O(n). I'd argue, we keep the default the same, and otherwise it's slighty more expensive but barely noticeable (only memory is a bit higher). |
We can compare both options. Either a double shift or a separable multiplication in Fourier space. |
Hello,
I wonder why the array's center is shifted after resampling to a larger size...
for example:
The peak of the resampled array is at (51, 51) and not:
The text was updated successfully, but these errors were encountered: