Skip to main content

Function: createAndCacheDerivedLabelmapVolume()

createAndCacheDerivedLabelmapVolume(referencedVolumeId, options): IImageVolume

Creates and caches a derived labelmap volume based on a referenced volume. This is basically a utility method since for the segmentations we have to specify Uint8Array as the targetBuffer type for now until we support other types.

Parameters

referencedVolumeId: string

The ID of the referenced volume.

options: DerivedVolumeOptions = ...

The options for creating the derived volume.

Returns

IImageVolume

A promise that resolves to the created derived segmentation volume.

Defined in

packages/core/src/loaders/volumeLoader.ts:498