-
Notifications
You must be signed in to change notification settings - Fork 9
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
ctf model ramp weighting correction and updated interpolation center #141
ctf model ramp weighting correction and updated interpolation center #141
Conversation
…qual to setting 0 freq in fourier transform to 0
… up to overlap freq should be most accurate
And I updated the version to 0.5.0 to cut a release with this update! |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 36514aa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one leftover old code LGTM otherwise
Co-authored-by: Sander Roet <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM feel free to merge
This PR updates internal code in _create_tilt_weighted_wedge to create a more precise weighting function.
First I add a linear weighting up to the point where tilt image overlap in Fourier space. This now allows summation of the tilts instead of doing a maximum operation. It reduces aliasing artifacts quite a lot:
Before:
After:
The second update (which is also visible in the image, but difficult to see), is that I changed the interpolation center when tilting the images. I switched to voltools instead of ndimage.rotate as this allows me to set the center to the origin in Fourier space, while ndimage.rotate instead uses (shape - 1) / 2, which is not correct for fourier space. In the above image the wedge is shifted one pixel to the left. But this can be quite crucial for the overlap of low frequencies between the tomo and template.