Skip to content

Open several currently open OME-Zarr images in BDV #108

Closed

Description

@tischi

I have a use case where I need to view several already open OME-Zarr images together in BigDataViewer. Is that possible?

Activity

  1. stefanhahmann commented on Sep 1, 2026

    @stefanhahmann
    Collaborator

    At the moment not. Can you specify a bit more what you mean by "together"?

    Are these several images:

    • multiple timepoints
    • multiple channels
    • multiple z slices

    of the "same" image

    or are these multiple images tiles of an even bigger image?

  2. tischi commented on Sep 2, 2026

    @tischi
    Author

    Those are totally separate OME-Zarr.

    Use-cases:

    1. one image and one label mask
    2. one LM image and one correlative EM image
    3. one LM image, one correlative EM image, and a label mask of the EM image

    I think you could just mimic what BigDataViewer is doing at the moment when you say "Open Current Image". It gives you the option to select several of the already currently open images.

    Plugins › BigDataViewer › Open Current Image

    Image Image
  3. stefanhahmann commented on Sep 2, 2026

    @stefanhahmann
    Collaborator

    Ah, I see. Now I understand.
    This is actually possible already.

    You can open e.g. https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/0 as an image in Fiji and e.g. https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/1 (This is not really a good example, since these examples were orignally not overlaying each other, but for technial demonstration, it is sufficient).

    Then you have both images opened in Fiji just like in your example and then you can do the same. So, it should work also with OME-Zarrs that way.

    Image

    Can you confirm that this is sufficient for your use case? Sorry for the initial misunderstanding.

  4. tischi commented on Sep 2, 2026

    @tischi
    Author

    Hi, what do you mean I "can do the same"?

    Can I just use Plugins › BigDataViewer › Open Current Image to open both of them?

    If yes, then maybe we could remove Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer, because it is redundant, and in fact less powerful because you can only open one image there?!

  5. stefanhahmann commented on Sep 2, 2026

    @stefanhahmann
    Collaborator

    Hi @tischi

    your intention was correct to question "can do the same". We just checked again and this is actually not the case.

    You can in fact use Plugins › BigDataViewer › Open Current Image to open 2 OME-Zarrs from which you have opened two individual zoom levels in Fiji. They will then appear in the same BigDataViewer.

    However, when you do so, the images will loose the "awareness" that they are actually part of a multi-resoultion image. The multi-resolution image is aware of these things:

    • it knows all the resolution levels there are
    • it also knows about the OMERO metadata (i.e. channel names, contrast limits etc.).

    That means that after you have opened an OME-Zarr in BigDataViewer using Plugins › BigDataViewer › Open Current Image, you will not be able from that BigDataViewer window to still use Plugins › OME-Zarr › Open Resolution Level. Also, if you do Plugins › BigDataViewer › Open Current Image, it will never re-use the channel name / contrast limit information of the OME-Zarr.

    So:

    • either Plugins › BigDataViewer › Open Current Image would need to be adapted to keep the awareness of the OME-Zarr multi-resolution and OMERO properties. This would be on the BigDataViewer side of things.
    • or Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer needs to be extended to support Images instead of just a single image.

    Both options would need to take care of the fact that the BigDataViewer then contains two Multi-Resolution images and we would need to think about what options are provided, if the user wants to do Plugins › OME-Zarr › Open Resolution Level. Then it would need to ask the resolution level of which of the two Multi-resolution images it should open.

  6. tischi commented on Sep 2, 2026

    @tischi
    Author

    You can in fact use Plugins › BigDataViewer › Open Current Image to open 2 OME-Zarrs from which you have opened two individual zoom levels in Fiji. They will then appear in the same BigDataViewer.

    However, when you do so, the images will loose the "awareness" that they are actually part of a multi-resoultion image. The multi-resolution image is aware of these things:

    just to make sure I understand this: this would be then two SourceAndConverters in BigDataViewer that are multi-resolution, right?

    Long term, I think it would be good to get rid of Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer and just have Plugins › BigDataViewer › Open Current Image

  7. xulman commented on Sep 2, 2026

    @xulman
    Contributor

    You can in fact use Plugins › BigDataViewer › Open Current Image to open 2 OME-Zarrs from which you have opened two individual zoom levels in Fiji. They will then appear in the same BigDataViewer.

    ...because the opened OME-Zarrs are all pretending to be also the regular Datasets, so anything that can handle "standard images" will see these images too and can work with them. That's why the Open Current Image works with them, but also treats them like "only the regular datasets" -- that's when Stefan says "However, when you do so, the images will loose the "awareness"...."

  8. xulman commented on Sep 2, 2026

    @xulman
    Contributor

    just to make sure I understand this: this would be then two SourceAndConverters in BigDataViewer that are multi-resolution, right?

    Only the Open Current OME-Zarr Image in BigDataViewer command is ATM aware of the pyramids and opens them as true SACs in BDV, indeed using the multi-resolution.

  9. xulman commented on Sep 2, 2026

    @xulman
    Contributor

    Long term, I think it would be good to get rid of Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer and just have Plugins › BigDataViewer › Open Current Image

    IMO Agreed! -> Topic for the upcoming hackathon, ping @tpietzsch as we would need changes in the BDV-fiji codebase, I believe.

  10. tischi commented on Sep 2, 2026

    @tischi
    Author

    Only the Open Current OME-Zarr Image in BigDataViewer command is ATM aware of the pyramids and opens them as true SACs in BDV, indeed using the multi-resolution.

    I think then a low hanging fruit improvement would be to change this menu entry such that it accepts multiple images as an input (the same way the corresponding BDV menu entry does it).

  11. stefanhahmann commented on Sep 22, 2026

    @stefanhahmann
    Collaborator

    Cross-reference: #127 asks for the related-but-different variant — adding an OME-Zarr to a BigDataViewer window that is already open (ideally by dragging onto the BDV window), so a second drag & drop does not spawn a second BDV.

    This issue is the batch at open time case: several already-open OME-Zarr images → one new BDV, pyramid- and OMERO-aware.

    Overlap: both end with more than one source in one BDV, and both need the same answer to "which multi-resolution image does Plugins › OME-Zarr › Open Resolution Level act on?".

  12. stefanhahmann commented on Oct 12, 2026

    @stefanhahmann
    Collaborator

    The low-hanging fruit is in #150: with several OME-Zarrs open, Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer now asks which of them to show, like BDV's "Open Current Image", and shows them multi-resolution and with their OMERO settings in one BDV window. Making BDV's own command pyramid-aware still needs changes on the BigDataViewer side.

    Image Image
  13. stefanhahmann commented on Oct 27, 2026

    @stefanhahmann
    Collaborator

    Closing, since #150 delivered the "low-hanging fruit": several open OME-Zarrs go into one BDV, multi-resolution and with OMERO settings (see above). Replacing our Plugins › OME-Zarr › Open Current OME-Zarr Image in BigDataViewer with BDV's own Plugins › BigDataViewer › Open Current Image needs a change on the BigDataViewer side and continues in #161.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions