Skip to main content

Class: OMEZarrImageDataProvider

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:15

Data provider for raster images

Implements

Constructors

Constructor

new OMEZarrImageDataProvider(): OMEZarrImageDataProvider

Returns

OMEZarrImageDataProvider

Properties

name

readonly name: "OME-Zarr" = "OME-Zarr"

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:20

The name of the data provider

Implementation of

ImageDataProvider.name


schema

readonly schema: object

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:22

The JSON schema for the data source

properties

properties: object

properties.sizeC

sizeC: object

properties.sizeC.type

type: string = "integer"

properties.t

t: object

properties.t.type

type: string = "integer"

properties.url

url: object

properties.url.type

type: string = "string"

properties.z

z: object

properties.z.type

type: string = "integer"

required

required: string[]

type

type: string = "object"

Implementation of

ImageDataProvider.schema


uischema

readonly uischema: object

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:42

The JSON Forms UI schema for the data source

elements

elements: object[]

type

type: string = "VerticalLayout"

Implementation of

ImageDataProvider.uischema

Methods

load()

load(normalizedDataSource, options?): Promise<OMEZarrImageData>

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:80

Opens a data source and returns the loaded data accessor

The data source has to have been normalized by DataProvider.normalize beforehand.

Parameters

normalizedDataSource

NormalizedOMEZarrImageDataSource

The normalized data source to open

options?

DataProviderLoadOptions

See DataProviderLoadOptions

Returns

Promise<OMEZarrImageData>

A promise that resolves to the loaded data accessor

Implementation of

ImageDataProvider.load


normalize()

normalize(dataSource, projectUrl): NormalizedOMEZarrImageDataSource

Defined in: @tissuumaps-storage/src/ome-zarr/OMEZarrImageDataProvider.ts:69

Returns the data source with all of this data provider's defaults applied and all of its relative URLs resolved

Data sources that normalize to the same value are considered equal, and their data is loaded only once and shared between all referencing objects. Normalization has to be idempotent: normalizing an already normalized data source must return the same value again.

Relative URLs are resolved against the URL the project was loaded from, and against the document base URL for projects without one.

Parameters

dataSource

OMEZarrImageDataSource

The data source to normalize

projectUrl

string | null

The absolute URL of the project, or null for projects that were not loaded from a URL

Returns

NormalizedOMEZarrImageDataSource

The normalized data source

Implementation of

ImageDataProvider.normalize