ome / napari-ome-zarr

A napari plugin for zarr backed OME-NGFF images
https://www.napari-hub.org/plugins/napari-ome-zarr
BSD 3-Clause "New" or "Revised" License
28 stars 21 forks source link

omero metadata info used in napari #79

Open giovp opened 1 year ago

giovp commented 1 year ago

general question, but what's the scope of support of omero metadata for this napari plugin? I'm thinking for instance of:

there might be more info on rendering that could be used by napari layers (I'd be curious to know which ones). I think it'd be useful to have a functionality that parse omero metadata and set layer properties in napari accordingly.

melonora commented 1 year ago

As far as I can tell most info could be used by Napari, if not by layers then by the LayerList.

active (in napari could mean 2 things): viewer.layers[].visible or viewer.layers.selection.active. (latter is whether it is the actively selected layer). family: either viewer.layers[].interpolation2d or viewer.layers[].interpolation3d. window: start and end I believe correspond to the contrast limits in napari. In rdefs the projection can be set in napari as well.

Also you could say that if in rdefs model is set to color and there is a value for EmissionWave in Napari colormaps could be used. For example if the Emissionwave is cy3 this would correspond to orange, if DAPI then blue and so on.

If this were to be implemented then perhaps the easiest would be to use Enums.