Defines weighting function objects used when generating radiance images:
Returns given array weighted by a normal distribution function.
Parameters: |
|
---|---|
Returns: | Weighted array. |
Return type: | ndarray |
Examples
>>> normal_distribution_function(np.linspace(0, 1, 10))
array([ 0.00386592, 0.03470859, 0.18002174, 0.53940751, 0.93371212,
0.93371212, 0.53940751, 0.18002174, 0.03470859, 0.00386592])
Returns given array weighted by a hat function.
Parameters: | a (array_like) – Array to apply the weighting function onto. |
---|---|
Returns: | Weighted array. |
Return type: | ndarray |
Examples
>>> hat_function(np.linspace(0, 1, 10))
array([ 0. , 0.95099207, 0.99913557, 0.99999812, 1. ,
1. , 0.99999812, 0.99913557, 0.95099207, 0. ])
Returns given array weighted by Debevec (1997) function.
Parameters: |
|
---|---|
Returns: | Weighted array. |
Return type: | ndarray |
References
[1] | Debevec, P., & Malik, J. (1997). Recovering High Dynamic Range Radiance Maps from Photographs, (August), 1–10. doi:10.1145/258734.258884 |
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. ])