Skip to main content

Function: scaleArray()

scaleArray(array, scalingParameters): Float32Array | Uint8Array | Uint16Array | Int16Array

Given a pixel array, rescale the pixel values using the rescale slope and intercept and if modality is PT it uses the suv values to scale the array

Parameters

array: Uint8Array | Float32Array | Int16Array | Uint16Array

The array to be scaled.

scalingParameters: ScalingParameters

The scaling parameters

Returns

Float32Array | Uint8Array | Uint16Array | Int16Array

The array is being scaled

Defined in

packages/core/src/utilities/scaleArray.ts:10