Interface: RenderToImageDataCPUOptions
Properties
modality?
optionalmodality: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?
optionalviewport: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?
optionalcolormap:string|ColormapPublic|CPUFallbackColormap
A colormap name such as 'hsv', a colormap object, or a CPU colormap. null gives no colormap.
displayedArea?
optionaldisplayedArea:Pick<CPUFallbackViewportDisplayedArea,"tlhc"|"brhc">
The source region. The function reads only tlhc and brhc.
voi?
optionalvoi:Partial<object>
Type declaration
voiLUTFunction?
optionalvoiLUTFunction:VOILUTFunctionType
windowCenter
windowCenter:
number
windowWidth
windowWidth:
number