diffrp.utils.colors#

diffrp.utils.colors.aces_fit(color: Tensor)#

More accurate ACES mapping of color values.

diffrp.utils.colors.aces_simple(x)#

Simple ACES mapping of color values.

diffrp.utils.colors.alexa_logc_ei1000_to_linear(logc)#
diffrp.utils.colors.linear_to_alexa_logc_ei1000(x)#
diffrp.utils.colors.linear_to_pu(y)#
diffrp.utils.colors.linear_to_srgb(rgb: Tensor) Tensor#

Converts from linear space to sRGB space. It is recommended to have the inputs already in LDR (range 0 to 1).

The output has the same shape as the input.

diffrp.utils.colors.pu_to_linear(x)#
diffrp.utils.colors.srgb_to_linear(rgb: Tensor) Tensor#

Converts from sRGB space to linear space.

The output has the same shape as the input.