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

Add a tutorial? that explains the interactions between data and world coords for scaled image and annotation layers #529

Open
psobolewskiPhD opened this issue Dec 3, 2024 · 0 comments
Labels
content Ideas for new or improved content documentation Improvements or additions to documentation task

Comments

@psobolewskiPhD
Copy link
Member

🧰 Task

The way that layer.data and and layer.scale interact isn't always obvious when there is an image with non-1s scale and one wants to annotate it with points, shapes, labels, etc.
Making things more confusing, adding a new annotation layer in the GUI passes the scale of the image layer, but that is not the case for programmatic creation.
This came up in a PR I had to a plugin and I wrote up a simple example/explainer:
computational-cell-analytics/micro-sam#804 (comment)

Something like this could be broadly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Ideas for new or improved content documentation Improvements or additions to documentation task
Projects
Development

No branches or pull requests

1 participant