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.
Value range is [0, 5], default value is 2.2.

preScale

float

input

Controls the amount of light in the scene before tone mapping is applied.
Value range is [0, 10], default value is 1.

postScale

float

input

Controls the brightness of the scene after tone mapping is applied.
Value range is [0, 10], default value is 1.2.

burn

float

input

Specifies the brightness value that will be mapped to full white in the output image.
Value range is [0, 10], default value is 3.75.

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);