...and in many different applications
Java:
ImageReader reader = new ImageReader();
IMetadata omeMetadata = MetadataTools.createOMEXMLMetadata();
reader.setMetadataStore(omeMetadata);
reader.setId("/PATH/TO/FILE");
for (int plane = 0; plane < reader.getImageCount(); plane++) {
byte[] image = reader.openBytes(plane);
Number timestamp = omeMetadata.getPlaneDeltaT(0, plane).value();
}
ImageJ macro:
run("Bio-Formats Macro Extensions");
Ext.setId("/PATH/TO/FILE");
Ext.getImageCount(imageCount);
timestamps = newArray(imageCount);
for (plane=0; plane < imageCount; plane++) {
Ext.openImage("image #" + plane, plane);
Ext.getPlaneTimingDeltaT(timestamps[plane], plane);
}
MATLAB:
r = bfGetReader("/PATH/TO/FILE");
imageCount = r.getImageCount();
omeMetadata = r.getMetadataStore();
for plane = 1:imageCount
image = bfGetPlane(r, plane, varargin{:});
timestamp = omeMetadata.getPlaneDeltaT(0, plane - 1).value().doubleValue();
end
Python:
reader = bioformats.get_image_reader(None, path="/PATH/TO/FILE")
imageCount = reader.rdr.getImageCount()
omeMetadata = javabridge.JWrapper(reader.rdr.getMetadataStore())
for plane in range(0, imageCount):
image = reader.read(series=0, index=plane, rescale=False)
timestamp = omeMetadata.getPlaneDeltaT(0, plane)