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. |
avLum |
float |
input |
Average input image luminance. |
maxLum |
float |
input |
Maximum input image luminance. |
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);