Constructor
new ModalityLut(rsi, bitsStored)
Parameters:
Name | Type | Description |
---|---|---|
rsi | RescaleSlopeAndIntercept | The rescale slope and intercept. |
bitsStored | number | The number of bits used to store the data. |
- Source
Classes
Methods
getLength() → {number}
Get the length of the LUT array.
- Source
Returns:
The length of the LUT array.
- Type:
- number
getRSI() → {RescaleSlopeAndIntercept}
Get the Rescale Slope and Intercept (RSI).
- Source
Returns:
The rescale slope and intercept object.
- Type:
- RescaleSlopeAndIntercept
getValue(offset) → {number}
Get the value of the LUT at the given offset.
Parameters:
Name | Type | Description |
---|---|---|
offset | number | The input offset in [0,2^bitsStored] range or full range for ID rescale. |
- Source
Returns:
The float32 value of the LUT at the given offset.
- Type:
- number