Filmic Uncharted Tone Mapping Filter
Filter
RIF_IMAGE_FILTER_FILMIC_UNCHARTED_TONEMAP
Description
Filmic Tonemapping Operator with adaptive exposure using a low pass filter.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
A |
float |
input |
Shoulder strength. |
B |
float |
input |
Linear strength. |
C |
float |
input |
Linear angle. |
D |
float |
input |
Toe strength. |
E |
float |
input |
Toe numerator. |
F |
float |
input |
Toe denominator. |
W |
float |
input |
White value. |
exposure |
float |
input |
Input image exposure coefficient. |
gamma |
float |
input |
Gamma correction coefficient. |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_FILMIC_UNCHARTED_TONEMAP, &filter);
rifImageFilterSetParameter1f(filter, "A", 0.15f);
rifImageFilterSetParameter1f(filter, "C", 0.5f);
rifImageFilterSetParameter1f(filter, "E", 0.02f);
rifImageFilterSetParameter1f(filter, "gamma", 2.2f);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);