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

Method for drawing masks on top of data #22

Open
takluyver opened this issue Aug 28, 2020 · 2 comments
Open

Method for drawing masks on top of data #22

takluyver opened this issue Aug 28, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@takluyver
Copy link
Member

There's an example of making masks programmatically, but on many occasions it's easier to select parts of an image visually.

I don't want to build extensive GUI code into EXtra-geom - full fledged applications should be built as separate packages on top of it. But I think we can do something simple with matplotlib events, which can also serve as an example for building bigger applications. Matplotlib events also have the advantage that the same code can work in the notebook and a script which can open a separate window.

@takluyver takluyver added the enhancement New feature or request label Aug 28, 2020
@daviddoji
Copy link

That would be awesome!
This will help many people, including myself, that use external software to draw masks, e.g., the GUI in pyFAI-calib2

@takluyver
Copy link
Member Author

I made a start on it in a notebook: https://max-jhub.desy.de/user-redirect/notebooks/GPFS/exfel/exp/SCS/202002/p002530/usr/kluyvert/Making%20masks.ipynb . Do you want to have a play with that, with a view to integrating the functionality in EXtra-geom.

It will probably be a bit clumsy and limited compared to dedicated interactive applications - I don't want to get properly into GUI code in EXtra-geom. I'm thinking of putting it in almost like a proof of concept.

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

No branches or pull requests

2 participants