Function: modalityScaleNifti()
modalityScaleNifti(
niftiHeader
,niftiImageBuffer
):object
Given a pixel array, rescale the pixel values using the rescale slope and intercept
Todo: add the scaling of PT and SUV
Parameters
• niftiHeader: any
• niftiImageBuffer: any
The array buffer of nifti file
Returns
object
TypedArray and pixelRepresentation is 0 if scala data is unsigned
pixelRepresentation
pixelRepresentation:
number
scalarData
scalarData:
Types.PixelDataTypedArray