lut

dwv.image. lut

Members

(static) range_max

Source:

Lookup tables for image colour display.

Methods

(static) buildLut(func) → {Array}

Source:

Build a LUT of size range_max.

Parameters:
Name Type Description
func function

The i to lut function.

Returns:

THe LUT.

Type
Array

(static) id(i) → {number}

Source:

Identity, returns i.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) invId(i) → {number}

Source:

Returns range_max minus one minus i.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) max(_i) → {number}

Source:

Max function: returns range_max minus one.

Parameters:
Name Type Description
_i number

The input index.

Returns:

The lut value.

Type
number

(static) maxFirstThird(i) → {number}

Source:

Returns range_max minus one for the first third of i, otherwise 0.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) maxSecondThird(i) → {number}

Source:

Returns range_max minus one from one third to two thirds of i, otherwise 0.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) maxThirdThird(i) → {number}

Source:

Returns range_max minus one from one third to two thirds of i, otherwise 0.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) toMaxFirstThird(i) → {number}

Source:

Ramp to range_max minus one on the first third values.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) toMaxSecondThird(i) → {number}

Source:

Ramp to range_max minus one on the second third values. otherwise return 0 for the first third and range_max minus one for the last third.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) toMaxThirdThird(i) → {number}

Source:

Ramp to range_max minus one on the last third values. otherwise return 0.

Parameters:
Name Type Description
i number

The input index.

Returns:

The lut value.

Type
number

(static) zero(_i) → {number}

Source:

Returns zero.

Parameters:
Name Type Description
_i number

The input index.

Returns:

The lut value.

Type
number