Skip to content

TonemapReinhard

Computational photographyclassOpenCV 5.0.0
import { TonemapReinhard } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSTonemapReinhard
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Tonemap.

This is a global tonemapping operator that models human visual system.

Mapping function is controlled by adaptation parameter, that is computed using light adaptation and color adaptation.

For more information see [RD05] .

Constructors and members

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

getIntensity

Return the intensity configured on this TonemapReinhard object.

getIntensity(): number;
Returns

The number result.

setIntensity

Set the intensity used by this TonemapReinhard object.

setIntensity(intensity: number): void;
intensity

intensity argument (number).

getLightAdaptation

Return the light adaptation configured on this TonemapReinhard object.

getLightAdaptation(): number;
Returns

The number result.

setLightAdaptation

Set the light adaptation used by this TonemapReinhard object.

setLightAdaptation(light_adapt: number): void;
light_adapt

light adapt argument (number).

getColorAdaptation

Return the color adaptation configured on this TonemapReinhard object.

getColorAdaptation(): number;
Returns

The number result.

setColorAdaptation

Set the color adaptation used by this TonemapReinhard object.

setColorAdaptation(color_adapt: number): void;
color_adapt

color adapt argument (number).

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.