Exponential Tone Mapping Filter

Filter

RIF_IMAGE_FILTER_EXPONENTIAL_TONEMAP

Description

Performs exponential tone mapping as:

../../_images/exponential_tone_mapping_f1.gif
../../_images/exponential_tone_mapping_f2.gif

Parameters

Parameter

Type

Input/Output

Description

gamma

float

input

Gamma correction coefficient. Applied after tone mapping.
Value range is [0, 5], default value is 2.2.

exposure

float

input

Input image pre-exposure coefficient.
Value range is [-10, 10], default value is 0.

intensity

float

input

Output image exposure coefficient.
Value range is [0, 100], default value is 1.

Usage Example

rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_EXPONENTIAL_TONEMAP, &filter);
rifImageFilterSetParameter1f(filter, "exposure", 0.5f);
rifImageFilterSetParameter1f(filter, "intensity", 0.8f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);