Skip to content

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

Open
@psobolewskiPhD

Description

@psobolewskiPhD

🧰 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentIdeas for new or improved contentdocumentationImprovements or additions to documentationtask

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions