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.
OMETiffLoader creates a non-geospatial source for OME-TIFF image pyramids.
| Property | Value |
|---|---|
| Data source | OMETiffImageSource |
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?: numberselects the pyramid level.t?: numberselects the time index.z?: numberselects the z slice.channels?: number[]selects one or more channels.interleaved?: booleanreturns one interleaved typed array for multi-channel reads.