colour_hdri.weighting_function_Debevec1997¶
-
colour_hdri.
weighting_function_Debevec1997
(a, domain_l=0.01, domain_h=0.99)[source]¶ Returns given array weighted by Debevec (1997) function.
Parameters: - a (array_like) – Array to apply the weighting function onto.
- domain_l (numeric, optional) – Domain lowest possible value, values less than
domain_l
will be set to zero. - domain_h (numeric, optional) – Domain highest possible value, values greater than
domain_h
will be set to zero.
Returns: Weighted array.
Return type: ndarray
References
Examples
>>> weighting_function_Debevec1997(np.linspace(0, 1, 10)) array([ 0. , 0.23273657, 0.48849105, 0.74424552, 1. , 1. , 0.74424552, 0.48849105, 0.23273657, 0. ])