Skip to content
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

radial_sum_sparse center is different #177

Open
ercius opened this issue Oct 1, 2020 · 1 comment
Open

radial_sum_sparse center is different #177

ercius opened this issue Oct 1, 2020 · 1 comment

Comments

@ercius
Copy link
Collaborator

ercius commented Oct 1, 2020

I want to document that radial_sum_sparse has a different center than other stempy functions like create_stem_images.

I will need to fix this so that everything matches, and we should document how to determine the center. I have a small-ish dataset where we can test this in the future:
image

# Input center as (col, row)
center = (185, 398) # or use stempy.image.com_dense()
fg,ax = plt.subplots(1,1)
ax.imshow(dp)
ax.scatter(center[0], center[1],c='r')
ax.legend(['center of pattern'])

# STEM images
images = stim.create_stem_images(electron_events, (0, 180), (50, 280), center=center) # here center is (row, col)

# Radial sum
radial_sum = stim.radial_sum_sparse(ee3, crop_dimensions, (576,576), center[::-1]) # center is (col, row)

image

@harsh07051
Copy link

I will like to take it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants