colour_hdri.tonemapping_operator_Tumblin1999¶
-
colour_hdri.
tonemapping_operator_Tumblin1999
(RGB, L_da=20, C_max=100, L_max=100, colourspace=RGB_Colourspace(sRGB, [[0.64, 0.33, ][0.3, 0.6, ][0.15, 0.06, ]][0.3127, 0.329, ]D65, [[0.4124, 0.3576, 0.1805, ][0.2126, 0.7152, 0.0722, ][0.0193, 0.1192, 0.9505, ]][[3.2406, -1.5372, -0.4986, ][-0.9689, 1.8758, 0.0415, ][0.0557, -0.204, 1.057, ]]<function eotf_inverse_sRGB>, <function eotf_sRGB>, False, False))[source]¶ Performs given RGB array tonemapping using Tumblin, Hodgins and Guenter (1999) method.
- Parameters
RGB (array_like) – RGB array to perform tonemapping onto.
L_da (numeric, optional) – \(L_{da}\) display adaptation luminance, a mid-range display value.
C_max (numeric, optional) – \(C_{max}\) maximum contrast available from the display.
L_max (numeric, optional) – \(L_{max}\) maximum display luminance.
colourspace (colour.RGB_Colourspace, optional) – RGB colourspace used for internal Luminance computation.
- Returns
Tonemapped RGB array.
- Return type
ndarray
References
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...]]])