mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
31 stars 12 forks source link

UX with annotations #671

Open martinschorb opened 2 years ago

martinschorb commented 2 years ago

This is related to what we implemented here:

https://github.com/mobie/clem-example-project/issues/18

Is it possible to generate non-exclusive views only containing the annotations and list them in a menu dropdown? Then they could be added individually to existing views.

constantinpape commented 2 years ago

Is it possible to generate non-exclusive views only containing the annotations and list them in a menu dropdown? Then they could be added individually to existing views.

I am not really sure what would happen in that case, but it's probably not currently possible. For some context, the sources need to be listed in the sourceAnnotationDisplay: https://github.com/mobie/mobie.github.io/blob/master/schema/view.schema.json#L272-L327

And for what you describe there wouldn't be any other displays (either segmentationDisplay or imageDisplay) that actually contain that source. This has two problems:

This overall doesn't sound like a good idea to me because it can introduce a lot of corner cases.

martinschorb commented 2 years ago

so we better add the views that show a layer of sources plus their annotations as non-exclusive views, so they can be added to any other view to display these annotations?

A dirty hack would be to generate empty sources with the shape (and subsequent trafos) of the original sources and then annotate those instead of the original sources.

constantinpape commented 2 years ago

I suggest we discuss your use-case via zoom after Easter.

martinschorb commented 2 years ago

🐰 🥚