Interface MultiresOMEZarrAPI

  • All Superinterfaces:
    AutoCloseable, OMEZarrAPI
    All Known Implementing Classes:
    OMEZarrStorage

    public interface MultiresOMEZarrAPI
    extends OMEZarrAPI
    Multi-resolution (pyramid) extension of OMEZarrAPI. Each successive resolution level is downsampled by a factor of two in x and y and stored as a separate OME-NGFF multiscales dataset (0, 1, 2, …). Levels can be added at any time, and lower-resolution data can be written either automatically (2×2 averaging on putImage) or explicitly by the caller.
    • Method Detail

      • getNumResLevels

        int getNumResLevels()
        Number of resolution levels currently in the pyramid.
      • setMaxResolutionLevel

        void setMaxResolutionLevel​(int numLevels)
        Ensure the pyramid has at least this many levels, creating new levels and back-filling them from existing data as needed. Can be called at any time during or after writing.
        Parameters:
        numLevels - desired number of resolution levels (>= current)
      • putImage

        Future<Void> putImage​(Object pixels,
                              String metadataJson,
                              Map<String,​Object> axes,
                              boolean rgb,
                              int bitDepth,
                              int imageHeight,
                              int imageWidth,
                              int resolutionLevel)
        Write a caller-supplied image to a specific resolution level, bypassing auto-downsampling. This is the "write lower-resolution data at any point in time" path.
        Parameters:
        resolutionLevel - 0 = full resolution, 1 = downsampled ×2, etc.
      • getImage

        OMEZarrImage getImage​(Map<String,​Object> axes,
                              int resolutionLevel)
        Get a single image at the given resolution level.
      • hasImage

        boolean hasImage​(Map<String,​Object> axes,
                         int resolutionLevel)
        Whether an image exists at the given resolution level.