colour_hdri.weighting_function_Debevec1997#

colour_hdri.weighting_function_Debevec1997(a: ArrayLike, domain_l: float = 0.01, domain_h: float = 0.99) NDArrayFloat[source]#

Return given array weighted by Debevec (1997) function.

Parameters:
  • a (ArrayLike) – Array to apply the weighting function onto.

  • domain_l (float) – Domain lowest possible value, values less than domain_l will be set to zero.

  • domain_h (float) – Domain highest possible value, values greater than domain_h will be set to zero.

Returns:

Weighted array.

Return type:

numpy.ndarray

References

[DM97]

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.        ])