public interface OMEBigTiffAPI extends AutoCloseable
org.micromanager.ndtiffstorage.NDTiffAPI. Multi-resolution/pyramid operations live
in MultiresOMEBigTiffAPI.
Images are addressed by an axes map (axisName -> Integer|String). Writing is
asynchronous on a dedicated thread; putImage(java.lang.Object, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>, boolean, int, int, int) returns a Future that
completes when the image is durably written. Reads are served immediately from an in-memory
write-pending buffer and fall back to disk, so reading during acquisition is safe.
| Modifier and Type | Method and Description |
|---|---|
void |
checkForWritingException()
Re-throw any exception that occurred on the writer thread.
|
void |
close()
Release all resources.
|
void |
closeAndWait()
Release all resources and block until done.
|
void |
finishedWriting()
Signal that no more images will be written; the dataset becomes read-only.
|
Set<Map<String,Object>> |
getAxesSet()
The set of axis positions for every image in the dataset.
|
String |
getCustomMetadata(String key)
Retrieve a custom-metadata blob previously stored under
key, or null. |
String |
getDiskLocation()
Path to the dataset root folder, or null if not on disk.
|
EssentialImageMetadata |
getEssentialImageMetadata(Map<String,Object> axes)
Essential metadata (width/height/bitDepth/rgb) without loading pixels.
|
OMEBigTiffImage |
getImage(Map<String,Object> axes)
Get a single image (resolution level 0).
|
int[] |
getImageBounds()
[xMin, yMin, xMax, yMax] pixel bounds of acquired data.
|
String |
getImageMetadata(Map<String,Object> axes)
Get per-image metadata JSON for the image with the given axes, or null.
|
String |
getSummaryMetadata()
The dataset summary metadata as a JSON string (supplied at construction), or null.
|
String |
getUniqueAcqName()
A unique name for this dataset instance.
|
int |
getWritingQueueTaskMaxSize()
Maximum size of the writer queue.
|
int |
getWritingQueueTaskSize()
Number of images waiting in the writer queue.
|
boolean |
hasImage(Map<String,Object> axes)
Whether an image with the given axes exists.
|
boolean |
isFinished()
Whether the dataset is finished writing and now read-only.
|
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).
|
void |
setCustomMetadata(String key,
String json)
Store an arbitrary custom-metadata blob under
key. |
Future<Void> putImage(Object pixels, String metadataJson, Map<String,Object> axes, boolean rgb, int bitDepth, int imageHeight, int imageWidth)
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 pixelsimageWidth - image width in pixelsboolean isFinished()
void checkForWritingException()
throws Exception
ExceptionString getSummaryMetadata()
void setCustomMetadata(String key, String json)
key.String getCustomMetadata(String key)
key, or null.void finishedWriting()
String getDiskLocation()
String getUniqueAcqName()
int[] getImageBounds()
OMEBigTiffImage getImage(Map<String,Object> axes)
String getImageMetadata(Map<String,Object> axes)
EssentialImageMetadata getEssentialImageMetadata(Map<String,Object> axes)
Set<Map<String,Object>> getAxesSet()
int getWritingQueueTaskSize()
int getWritingQueueTaskMaxSize()
void close()
close in interface AutoCloseablevoid closeAndWait()
throws InterruptedException
InterruptedExceptionCopyright © 2026. All rights reserved.