colour_hdri.tonemapping_operator_Tumblin1999#

colour_hdri.tonemapping_operator_Tumblin1999(RGB: ArrayLike, L_da: float = 20, C_max: float = 100, L_max: float = 100, colourspace: RGB_Colourspace = RGB_COLOURSPACES['sRGB']) NDArrayFloat[source]#

Perform given RGB array tonemapping using Tumblin, Hodgins and Guenter (1999) method.

Parameters:
  • RGB (ArrayLike) – RGB array to perform tonemapping onto.

  • L_da (float) – \(L_{da}\) display adaptation luminance, a mid-range display value.

  • C_max (float) – \(C_{max}\) maximum contrast available from the display.

  • L_max (float) – \(L_{max}\) maximum display luminance.

  • colourspace (RGB_Colourspace) – RGB colourspace used for internal Luminance computation.

Returns:

Tonemapped RGB array.

Return type:

numpy.ndarray

References

[THG99]

Examples

>>> tonemapping_operator_Tumblin1999(
...     np.array(
...         [
...             [
...                 [0.48046875, 0.35156256, 0.23632812],
...                 [1.39843753, 0.55468757, 0.39062594],
...             ],
...             [
...                 [4.40625388, 2.15625895, 1.34375372],
...                 [6.59375023, 3.43751395, 2.21875829],
...             ],
...         ]
...     )
... )  
array([[[ 0.0400492...,  0.0293043...,  0.0196990...],
        [ 0.1019768...,  0.0404489...,  0.0284852...]],

       [[ 0.2490212...,  0.1218618...,  0.0759427...],
        [ 0.3408366...,  0.1776880...,  0.1146895...]]])