Radeon ProRender

Drago Tone Mapping Filter

Filter

RIF_IMAGE_FILTER_DRAGO_TONEMAP

Description

Drago tone mapping operator implementation. The original purpose of the algorithm is to provide a high-quality tone mapping technique to display high contrast images on devices with low dynamic range. For more details, see http://resources.mpi-inf.mpg.de/tmo/logmap/logmap.pdf.

Parameters

Parameter Type Input/Output Description
bias float input User defined exposure factor. Smaller bias values produce significantly brighter pictures.
Values between 0.7 and 0.9 seem to be most useful. Default value is 1.
avLum float input Average input image luminance.
Default value is 0.
maxLum float input Maximum input image luminance.
Default value is 0.1.

Usage Example

rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_DRAGO_TONEMAP, &filter);
rifImageFilterSetParameter1f(filter, "avLum", 0.5f);
rifImageFilterSetParameter1f(filter, "maxLum", 1.0f);
rifImageFilterSetParameter1f(filter, "bias", 0.8f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);