Exponential Tone Mapping Filter
Filter
RIF_IMAGE_FILTER_EXPONENTIAL_TONEMAP
Description
Performs exponential tone mapping as:
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
gamma |
float |
input |
Gamma correction coefficient. Applied after tone mapping. |
exposure |
float |
input |
Input image pre-exposure coefficient. |
intensity |
float |
input |
Output image exposure coefficient. |
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);