Reinhard Tone Mapping Filter
Filter
RIF_IMAGE_FILTER_REINHARD02_TONEMAP
Description
Performs Reinhard02 tone mapping. For more details, see http://www.cmap.polytechnique.fr/~peyre/cours/x2005signal/hdr_photographic.pdf.
Parameters
Parameter |
Type |
Input/Output |
Description |
---|---|---|---|
gamma |
float |
input |
Gamma correction coefficient. Applied after tone mapping. |
preScale |
float |
input |
Controls the amount of light in the scene before tone mapping is applied. |
postScale |
float |
input |
Controls the brightness of the scene after tone mapping is applied. |
burn |
float |
input |
Specifies the brightness value that will be mapped to full white in the output image. |
Usage Example
rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_HUE_SATURATION, &filter);
rifImageFilterSetParameter1f(filter, "preScale", preScale);
rifImageFilterSetParameter1f(filter, "postScale", postScale);
rifImageFilterSetParameter1f(filter, "burn", burn);
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);