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

Calibration tool #103

Open
magnunor opened this issue Jan 30, 2017 · 1 comment
Open

Calibration tool #103

magnunor opened this issue Jan 30, 2017 · 1 comment

Comments

@magnunor
Copy link
Contributor

Since calibrating images from some feature with know size is a common task in microscopy, it would be nice to have such a tool in HyperSpyUI as well.

This can be done manually using the Line tool and manually calculating the units/pixel, but having a dedicated tool for this would be really nice.

It might be an idea to implement it in HyperSpy directly, as it is a fairly common operation people want to do.

@vidartf
Copy link
Member

vidartf commented Feb 1, 2017

I agree this would be nice. How would a function that could go into hspy look?

def calibrate_axes(axes, start_coords, end_coords, expected_scale, expected_unit):

It would at least have to assume that the image have the same units in both directions. Should it check the existing units first (fail if not the same, warn, or silently overwrite units?).

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