Skip to content

createTonemapReinhard

Computational photographyfunctionOpenCV 5.0.0
import { createTonemapReinhard } from '@banou/opencv-wasm'

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

Creates TonemapReinhard object

createTonemapReinhard(gamma: number, intensity: number, light_adapt: number, color_adapt: number): TonemapReinhard | null;
5 available overloads
createTonemapReinhard(): TonemapReinhard | null;
createTonemapReinhard(gamma: number): TonemapReinhard | null;
createTonemapReinhard(gamma: number, intensity: number): TonemapReinhard | null;
createTonemapReinhard(gamma: number, intensity: number, light_adapt: number): TonemapReinhard | null;
createTonemapReinhard(gamma: number, intensity: number, light_adapt: number, color_adapt: number): TonemapReinhard | null;
gamma

gamma value for gamma correction. See createTonemap

intensity

result intensity in [-8, 8] range. Greater intensity produces brighter results.

light_adapt

light adaptation in [0, 1] range. If 1 adaptation is based only on pixel value, if 0 it's global, otherwise it's a weighted mean of this two cases.

color_adapt

chromatic adaptation in [0, 1] range. If 1 channels are treated independently, if 0 adaptation level is the same for each channel.

Returns

The TonemapReinhard | null result.

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.