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

B

float

input

Linear strength.
Value range is [0, 1], default value is 0.5.

C

float

input

Linear angle.
Value range is [0, 1], default value is 0.1.

D

float

input

Toe strength.
Value range is [0, 1], default value is 0.2.

E

float

input

Toe numerator.
Value range is [0, 1], default value is 0.02.

F

float

input

Toe denominator.
Value range is [0, 1], default value is 0.3.

W

float

input

White value.
Value range is [1, 20], default value is 11.2.

exposure

float

input

Input image exposure coefficient.
Value range is [-10, 10], default value is 1.

gamma

float

input

Gamma correction coefficient.
Value range is [0, 5], default value is 2.2.

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