Function: createAndCacheDerivedLabelmapImages()
createAndCacheDerivedLabelmapImages(
referencedImageIds,options):IImage[]
Creates and caches derived segmentation images based on the referenced imageIds, this is a helper function, we don't have segmentation concept in the cornerstone core; however, this helper would make it clear that the segmentation images SHOULD be Uint8Array type always until we have a better solution.
Parameters
• referencedImageIds: string[]
An array of referenced image IDs.
• options: DerivedImageOptions = ...
The options for creating the derived images. targetBuffer is
always { type: 'Uint8Array' }; voxelRepresentation defaults to
getDefaultLabelmapVoxelRepresentation(), i.e.
segmentation.labelmapVoxelRepresentation from the cornerstone
configuration, which is VoxelManagerEnum.Volume unless a host opts in.
Returns
IImage[]
The derived images.