Skip to main content

Function: createSigmoidRGBTransferFunction()

createSigmoidRGBTransferFunction(voiRange, approximationNodes): vtkColorTransferFunction

A utility that can be used to generate an Sigmoid RgbTransferFunction. Sigmoid transfer functions are used in the dicom specification: https://dicom.nema.org/medical/dicom/2018b/output/chtml/part03/sect_C.11.2.html

Parameters

voiRange: VOIRange

approximationNodes: number = 1024

Returns

vtkColorTransferFunction

Example

Setting an RGB Transfer function from the viewport:

const sigmoidRGBTransferFunction = createSigmoidRGBTransferFunction(0, 255, { lower: 0, upper: 255} );
viewport
.getActor()
.getProperty()
.setRGBTransferFunction(0, sigmoidRGBTransferFunction);

See

ColorTransferFunction

Defined in

packages/core/src/utilities/createSigmoidRGBTransferFunction.ts:25