colour_hdri.tonemapping_operator_logarithmic_mapping#
- colour_hdri.tonemapping_operator_logarithmic_mapping(RGB: ArrayLike, p: float = 1, q: float = 1, colourspace: RGB_Colourspace = RGB_COLOURSPACES['sRGB']) NDArrayFloat [source]#
Perform given RGB array tonemapping using the logarithmic mapping method.
- Parameters:
RGB (ArrayLike) – RGB array to perform tonemapping onto.
p (float) – \(p\).
q (float) – \(q\).
colourspace (RGB_Colourspace) – RGB colourspace used for internal Luminance computation.
- Returns:
Tonemapped RGB array.
- Return type:
References
[Sch94]
Examples
>>> tonemapping_operator_logarithmic_mapping( ... 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.2532899..., 0.1853341..., 0.1245857...], [ 0.6523387..., 0.2587489..., 0.1822179...]], [[ 1.3507897..., 0.6610269..., 0.4119437...], [ 1.6399638..., 0.8549608..., 0.5518382...]]])