Skip to main content

Interface: RenderToImageDataCPUOptions

Properties​

modality?​

optional modality: string

The modality, for example 'PT' for the pre-scaled PET window. The order of precedence: options.modality, then options.viewport.modality, then image.preScale.scalingParameters.modality. The function does not read the metadata provider.

Defined in​

packages/core/src/utilities/renderToImageDataCPU.ts:27


viewport?​

optional viewport: Partial<Omit<CPUFallbackViewport, "colormap" | "voi" | "displayedArea">> & object

Values that replace the default viewport, for example voi, invert or colormap. A key with the value undefined keeps the default. A partial voi merges into the default voi, so { voiLUTFunction: VOILUTFunctionType.SAMPLED_SIGMOID } keeps the window of the image.

Type declaration​

colormap?​

optional colormap: string | ColormapPublic | CPUFallbackColormap

A colormap name such as 'hsv', a colormap object, or a CPU colormap. null gives no colormap.

displayedArea?​

optional displayedArea: Pick<CPUFallbackViewportDisplayedArea, "tlhc" | "brhc">

The source region. The function reads only tlhc and brhc.

voi?​

optional voi: Partial<object>

Type declaration​
voiLUTFunction?​

optional voiLUTFunction: VOILUTFunctionType

windowCenter​

windowCenter: number

windowWidth​

windowWidth: number

Defined in​

packages/core/src/utilities/renderToImageDataCPU.ts:35