colour_hdri.tonemapping_operator_filmic¶
-
colour_hdri.
tonemapping_operator_filmic
(RGB, shoulder_strength=0.22, linear_strength=0.3, linear_angle=0.1, toe_strength=0.2, toe_numerator=0.01, toe_denominator=0.3, exposure_bias=2, linear_whitepoint=11.2)[source]¶ Performs given RGB array tonemapping using Habble (2010) method.
- Parameters
RGB (array_like) – RGB array to perform tonemapping onto.
shoulder_strength (numeric, optional) – Shoulder strength.
linear_strength (numeric, optional) – Linear strength.
linear_angle (numeric, optional) – Linear angle.
toe_strength (numeric, optional) – Toe strength.
toe_numerator (numeric, optional) – Toe numerator.
toe_denominator (numeric, optional) – Toe denominator.
exposure_bias (numeric, optional) – Exposure bias.
linear_whitepoint (numeric, optional) – Linear whitepoint.
- Returns
Tonemapped RGB array.
- Return type
ndarray
References
Examples
>>> tonemapping_operator_filmic(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.4507954..., 0.3619673..., 0.2617269...], [ 0.7567191..., 0.4933310..., 0.3911730...]], [[ 0.9725554..., 0.8557374..., 0.7465713...], [ 1.0158782..., 0.9382937..., 0.8615161...]]])