Skip to main content

GeoTIFF API / bioimaging

Read an OME-TIFF pyramid as selected raster data.

OMETiffLoader discovers OME image metadata and reads chosen channels, dimensions, and pyramid levels from a multi-image TIFF without forcing the application to decode every plane.

Multichannel raster source

Discover the image, then request a plane.

OME-TIFF stores image dimensions, channel descriptions, and pyramid levels alongside TIFF data. The source turns those dimensions into explicit metadata and raster requests.

Discover

Read channel count, dtype, levels, and OME dimensions.

Select

Choose channels, time, depth, and pyramid level.

Read

Decode the selected raster plane from the TIFF structure.

Compare

Use the same source shape as OME-Zarr image pyramids.

Detailed guide

OMETiffLoader reference

The detailed reference covers source creation, metadata, raster parameters, image selection, and the relationship to the underlying GeoTIFF loader.

From-v5.0Status: Work-In-Progress

OMETiffLoader creates a non-geospatial source for OME-TIFF image pyramids.

PropertyValue
Data sourceOMETiffImageSource

Usage​

import {createDataSourceSync} from '@loaders.gl/core';
import {OMETiffLoader} from '@loaders.gl/raster/geotiff';

const source = createDataSourceSync('multi-channel.ome.tif', [OMETiffLoader], {
core: {type: 'ometiff'},
ometiff: {}
});

const metadata = await source.getMetadata();
const raster = await source.getRaster({
channels: [0, 1, 2],
level: 0,
t: 0,
z: 0
});

API​

getMetadata(): Promise<OMETiffSourceLoaderMetadata>​

Returns normalized OME image metadata for the first image in the file, including channel count, dtype, pyramid levels, and OME dimension sizes.

getRaster(parameters?: GetOMETiffParameters): Promise<RasterData>​

Loads one 2D OME-TIFF plane or a multi-channel composite.

  • level?: number selects the pyramid level.
  • t?: number selects the time index.
  • z?: number selects the z slice.
  • channels?: number[] selects one or more channels.
  • interleaved?: boolean returns one interleaved typed array for multi-channel reads.