-
Notifications
You must be signed in to change notification settings - Fork 40
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
4D output should crop center #2
Comments
4D output also has swapped quadrants |
I am not 100% sure how to do this, but here is a suggestion for change to crop and swap quadrants for 4D STEM - I am not sure this is not breaking any other data saves |
The quadrant swapping functionality is already in Prismatic in the function |
my code was changing toMRC_f method for this. Thanks for |
I prefer the default FFT quadrant positions because the origin pixel is always at (0,0). I agree though that at some point we should definitely change the 4D output to only save the portions inside the anti aliasing aperture. |
I think the solution would be to have only inside the anti aliasing aperture saved always, and then to add an additional option that will shift the quadrants if the user desires |
Anyone opening these files in python can achieve the shift with np.fft.fftshift(pr.fileio.readMRC(filename)[0]). The [0] is required because the readMRC function assumes that the mrc file can be a stack, I assume, and the file only contains a single image. |
Outputs are now cropped and fftshifted by default. |
The current 4D output results in many 2D images, each of which includes the anti-aliasing aperture. The result is that much of the array is wasted space (zeros). Only the central region should be returned.
The text was updated successfully, but these errors were encountered: