Linear Photographic Tone Mapping Filter

Filter

RIF_IMAGE_FILTER_PHOTO_LINEAR_TONEMAP

Description

Photographic tone mapper that emulates the work of camera.

Based on following formulas:

https://en.wikipedia.org/wiki/Film_speed#Measurements_and_calculations.

The filter computes the luminous exposure H (in lux seconds):

../../_images/linear_photographic_tone_mapping_formula.svg

where we assume q = 0.65. Pixel value is multiplied by H.

After that, gamma correction is applied.

Parameters

Parameter

Type

Input/Output

Description

gamma

float

input

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

exposureTime

float

input

Film exposure time.
Value range is [0, 100], default value is 0.125.

sensitivity

float

input

Luminance of the scene (in candela per m^2).
Value range is [0, 100], default value is 1.

fstop

float

input

Aperture f-number.
Value range is [0, 100], default value is 1.