Interface OMEZarrAPI

    • Method Detail

      • putImage

        Future<Void> putImage​(Object pixels,
                              String metadataJson,
                              Map<String,​Object> axes,
                              boolean rgb,
                              int bitDepth,
                              int imageHeight,
                              int imageWidth)
        Add an image to storage (resolution level 0).
        Parameters:
        pixels - primitive pixel array (byte[], short[], float[])
        metadataJson - per-image metadata as a JSON string (may be null)
        axes - axis name to position (Integer or String)
        rgb - whether the image is RGB (unsupported in v1)
        bitDepth - bits per pixel component (8/16/32)
        imageHeight - image height in pixels
        imageWidth - image width in pixels
        Returns:
        a future completing when the image is written
      • isFinished

        boolean isFinished()
        Whether the dataset is finished writing and now read-only.
      • checkForWritingException

        void checkForWritingException()
                               throws Exception
        Re-throw any exception that occurred on the writer thread.
        Throws:
        Exception
      • getSummaryMetadata

        String getSummaryMetadata()
        The dataset summary metadata as a JSON string (supplied at construction), or null.
      • setCustomMetadata

        void setCustomMetadata​(String key,
                               String json)
        Store an arbitrary custom-metadata blob under key in the root group.
      • getCustomMetadata

        String getCustomMetadata​(String key)
        Retrieve a custom-metadata blob previously stored under key, or null.
      • finishedWriting

        void finishedWriting()
        Signal that no more images will be written; the dataset becomes read-only.
      • getDiskLocation

        String getDiskLocation()
        Path to the dataset root folder, or null if not on disk.
      • getUniqueAcqName

        String getUniqueAcqName()
        A unique name for this dataset instance.
      • getImageBounds

        int[] getImageBounds()
        [xMin, yMin, xMax, yMax] pixel bounds of acquired data.
      • getImageMetadata

        String getImageMetadata​(Map<String,​Object> axes)
        Get per-image metadata JSON for the image with the given axes, or null.
      • hasImage

        boolean hasImage​(Map<String,​Object> axes)
        Whether an image with the given axes exists.
      • getAxesSet

        Set<Map<String,​Object>> getAxesSet()
        The set of axis positions for every image in the dataset.
      • getWritingQueueTaskSize

        int getWritingQueueTaskSize()
        Number of images waiting in the writer queue.
      • getWritingQueueTaskMaxSize

        int getWritingQueueTaskMaxSize()
        Maximum size of the writer queue.
      • close

        void close()
        Release all resources.
        Specified by:
        close in interface AutoCloseable