Skip to main content

Class: OMEZarrImageData

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageData.ts:9

Loaded image data providing one or more OpenSeadragon-compatible tile sources

Image data is either multi-channel, in which case it provides one tile source per channel, addressed by channel index; or it is not, in which case it provides a single tile source that is not addressed by channel. ImageData.getSizeC returns undefined for image data that is not multi-channel.

Multi-channel image data that implements RasterData.getTileData provides a single sample ("grayscale value") per pixel and channel, which the renderer contrast-stretches and colorizes (see ImageData.getChannelContrastLimits and ImageData.getChannelColor). Multi-channel image data that does not implement it is free to provide grayscale or RGB tile sources per channel, which are drawn as they are.

Implements

Constructors

Constructor

new OMEZarrImageData(tileSource, tileSources, objectUrl?): OMEZarrImageData

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageData.ts:14

Parameters

tileSource

OMEZarrTileSource | undefined

tileSources

OMEZarrTileSource[] | undefined

objectUrl?

string

Returns

OMEZarrImageData

Methods

close()

close(): void

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageData.ts:44

Releases all resources held by this data object

Returns

void

Implementation of

ImageData.close


getSizeC()

getSizeC(): number | undefined

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageData.ts:24

Returns the number of channels in the image, or undefined if not multi-channel

Returns

number | undefined

Implementation of

ImageData.getSizeC


getTileSource()

getTileSource(c?): string | object | CustomTileSource

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageData.ts:28

Returns the tile source of a channel, or the only tile source of image data that is not multi-channel

Parameters

c?

number

The channel index (0-based), required for multi-channel image data and to be omitted otherwise

Returns

string | object | CustomTileSource

The tile source, which can be a URL string, a TileSourceConfig object, or a CustomTileSource object

Throws

Error if c is omitted for multi-channel image data, if c is passed for image data that is not multi-channel, or if c is out of bounds

Implementation of

ImageData.getTileSource