ACES Filmic Tone Mapping Filter
Filter
RIF_IMAGE_FILTER_FILMIC_TONEMAP
Description
Applies ACES filmic tone mapping. The image will be pre-exposed and pre-contrasted before tone mapping.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
exposure |
float |
input |
Input image pre-exposure coefficient. |
contrast |
float |
input |
Input image pre-contrast coefficient. |
applyToneMap |
uint |
input |
If set to |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_FILMIC_TONEMAP, &filter);
rifImageFilterSetParameter1f(filter, "exposure", 0.5f);
rifImageFilterSetParameter1f(filter, "contrast", 0.7f);
rifImageFilterSetParameter1u(filter, "applyToneMap", RIF_TRUE);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);