diffrp.utils.tone_mapping#

diffrp.utils.tone_mapping.agx_base_contrast(rgb: Tensor)#

Performs tone-mapping from HDR linear RGB space into LDR sRGB space with the state-of-the-art AgX tone-mapper, the base contrast variant.

Parameters:

rgb (torch.Tensor) – Tensor of shape (…, 3) containing linear RGB values.

Returns:

Tensor of the same shape as the input.

Return type:

torch.Tensor