OME-TIFF
Prerequisites
Before starting this lesson, you should be familiar with:
Learning Objectives
After completing this lesson, learners should be able to:
Understand the basic concept of the TIFF image data format
Understand that there are various TIFF variants, such as ImageJ-TIFF and OME-TIFF
Create OME-TIFF files
Convert other image data into OME-TIFF files
Inspect OME-TIFF image data and metadata
Motivation
- Representing microscopy image data on disk is essential
- Understanding the pros and cons as well how to work with different image data formats is essential
- TIFF is among the most wide-spread microscopy image file formats
- TIFF is tricky, because the internal content of a .tiff file can vary substantially
- OME-TIFF is an attempt to create a TIFF standard for bioimaging
Concept map
Figure
General comments
The TIFF file format is already complex and the OME-TIFF variant is adding even more metadata on top. To fully understand everything is way beyond the aim of this training material. We will just scratch the surface to understand the most important concepts.
IFDs and image planes
TIFF is a planar image data format. Internally there are always pairs of IFD and data blocks. IFD stands for “Image File Directory” and contains information about where the corresponding image data block can be found in the file, the image width and height, as well as its datatype.
One TIFF file can contain many IFD/data pairs.
The IFD/data pairs may contain images of different sizes and different datatypes.
Physical pixel size
The TIFF format does natively support storing pixel size metadata, typically in units of centimetre or inches.
Resolution pyramids and chunking
The TIFF format supports the concept of resolution pyramids, and chunked storage of pixels within one plane. However there is no 3-D chunking available. Thus, TIFF can in fact be used as a 2-D big image data format.
Channels, z-planes, and time points
The TIFF format does not natively support storing information about which channel, z-plane or time-point an IFD/data pair belongs to. This bioimaging specific information is handled by additional metadata of TIFF variants, such as OME-TIFF.
Activities
Open OME-TIFF
- Download the OME-TIFF image file xy_xyc__two_images.ome.tiff
- Open the OME-XML metadata of this file and try to understand it
- Interesting entries entail:
PixelPhysicalSize
Show activity for:
Fiji Bio-Formats
- Open Fiji
- Drag and drop the OME-TIFF image onto Fiji
- The Bio-Formats Importer will open
[X]
Display OME-XML metadata- [ OK ]
- Observe that there are only two datasets, but stored at different resolution levels
- Select all images
- [ OK ]
- Inspect the OME-XML metadata
Python/BioIO
Save... OME-TIFF
Save image file as OME-TIFF.
Show activity for:
Python/BioIO
Convert an image file to OME-TIFF
- Download the Leica image file image.lif
- Open the file
- Observe that it contains two images with different dimensions
- Take note of important metadata, such as the spatial calibration
- Convert the file to OME-TIFF
- Open the OME-TIFF
- Check whether the image data and metadata has been preserved
Show activity for:
NGFF-Converter
This activity uses the NGFF Converter to convert a LIF image data set into an OME-TIFF image data set; and it uses Fiji to inspect the content of both the LIF and the OME-TIFF.
- Inspect LIF using Fiji:
- Drag and drop the LIF image onto Fiji
- The Bio-Formats Importer will open
[X]
Display OME-XML metadata- [ OK ]
- Select all images
- [ OK ]
- Take note of
- Number of images
- For each image note its dimensions and spatial calibration
- Inspect the OME-XML metadata and note down some values that you deem important
- Convert LIF to OME-TIFF using the NGFF converter:
- Install the NGFF converter TODO: add link
- Open the NGFF converter
- Drag and drop the LIF file onto it
- A dialog will open:
- Output format: OME-TIFF
- Output location: As you wish
- [ Apply ]
- [ Run Jobs ]
- Inspect OME-TIFF using Fiji:
- Drag and drop the created OME-TIFF onto Fiji
- Repeat the same steps as for the original LIF file
- Check whether all image data and metadata has been preserved
Key points
- The NGFF converter is a nice tool to create OME-TIFF
- OME-TIFF can contain multiple image data sets
- OME-TIFF can contain resolution pyramids
Python/BioIO
Assessment
Fill in the blanks
- TODO ___ .
- TODO ___ .
Solution
- TODO
- TODO
Follow-up material
Recommended follow-up modules:
Learn more: