Class: ColorTables
Defined in: colortables.ts:23
Constructors
Constructor
new ColorTables(): ColorTables;
Defined in: colortables.ts:31
Sets cluts to alphabetically sorted cmaps
Returns
ColorTables
Properties
| Property | Type | Default value | Defined in |
|---|---|---|---|
cluts | Record<string, ColorMap> | {} | colortables.ts:26 |
gamma | number | 1.0 | colortables.ts:24 |
version | number | 0.1 | colortables.ts:25 |
Methods
addColormap()
addColormap(key: string, cmap: ColorMap): void;
Defined in: colortables.ts:43
Parameters
| Parameter | Type |
|---|---|
key | string |
cmap | ColorMap |
Returns
void
colormap()
colormap(key: string, isInvert: boolean): Uint8ClampedArray;
Defined in: colortables.ts:83
Parameters
| Parameter | Type | Default value |
|---|---|---|
key | string | '' |
isInvert | boolean | false |
Returns
Uint8ClampedArray
colormapFromKey()
colormapFromKey(name: string): ColorMap;
Defined in: colortables.ts:57
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
colormaps()
colormaps(): string[];
Defined in: colortables.ts:47
Returns
string[]
colorMaps()
colorMaps(): string[];
Defined in: colortables.ts:52
Returns
string[]
makeDrawLut()
makeDrawLut(name: string | ColorMap): LUT;
Defined in: colortables.ts:164
Parameters
| Parameter | Type |
|---|---|
name | string | ColorMap |
Returns
makeLabelLut()
makeLabelLut(
cm: ColorMap,
alphaFill: number,
maxIdx: number): LUT;
Defined in: colortables.ts:88
Parameters
| Parameter | Type | Default value |
|---|---|---|
cm | ColorMap | undefined |
alphaFill | number | 255 |
maxIdx | number | Infinity |
Returns
makeLabelLutFromUrl()
makeLabelLutFromUrl(
name: string,
alphaFill: number,
maxIdx: number): Promise<LUT>;
Defined in: colortables.ts:156
Parameters
| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
alphaFill | number | 255 |
maxIdx | number | Infinity |
Returns
Promise<LUT>
makeLut()
makeLut(
Rsi: number[],
Gsi: number[],
Bsi: number[],
Asi: number[],
Isi: number[],
isInvert: boolean): Uint8ClampedArray;
Defined in: colortables.ts:210
Parameters
| Parameter | Type |
|---|---|
Rsi | number[] |
Gsi | number[] |
Bsi | number[] |
Asi | number[] |
Isi | number[] |
isInvert | boolean |
Returns
Uint8ClampedArray