Package org.micromanager.mmomezarr
Interface MultiresOMEZarrAPI
-
- All Superinterfaces:
AutoCloseable,OMEZarrAPI
- All Known Implementing Classes:
OMEZarrStorage
public interface MultiresOMEZarrAPI extends OMEZarrAPI
Multi-resolution (pyramid) extension ofOMEZarrAPI. Each successive resolution level is downsampled by a factor of two in x and y and stored as a separate OME-NGFFmultiscalesdataset (0,1,2, …). Levels can be added at any time, and lower-resolution data can be written either automatically (2×2 averaging onputImage) or explicitly by the caller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EssentialImageMetadatagetEssentialImageMetadata(Map<String,Object> axes, int resolutionLevel)Essential metadata at the given resolution level.OMEZarrImagegetImage(Map<String,Object> axes, int resolutionLevel)Get a single image at the given resolution level.intgetNumResLevels()Number of resolution levels currently in the pyramid.booleanhasImage(Map<String,Object> axes, int resolutionLevel)Whether an image exists at the given resolution level.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.voidsetMaxResolutionLevel(int numLevels)Ensure the pyramid has at least this many levels, creating new levels and back-filling them from existing data as needed.-
Methods inherited from interface org.micromanager.mmomezarr.OMEZarrAPI
checkForWritingException, close, closeAndWait, finishedWriting, getAxesSet, getCustomMetadata, getDiskLocation, getEssentialImageMetadata, getImage, getImageBounds, getImageMetadata, getSummaryMetadata, getUniqueAcqName, getWritingQueueTaskMaxSize, getWritingQueueTaskSize, hasImage, isFinished, putImage, setCustomMetadata
-
-
-
-
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.
-
getEssentialImageMetadata
EssentialImageMetadata getEssentialImageMetadata(Map<String,Object> axes, int resolutionLevel)
Essential metadata at the given resolution level.
-
-