Skip to content

createTonemapMantiuk

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

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

Creates TonemapMantiuk object

createTonemapMantiuk(gamma: number, scale: number, saturation: number): TonemapMantiuk | null;
4 available overloads
createTonemapMantiuk(): TonemapMantiuk | null;
createTonemapMantiuk(gamma: number): TonemapMantiuk | null;
createTonemapMantiuk(gamma: number, scale: number): TonemapMantiuk | null;
createTonemapMantiuk(gamma: number, scale: number, saturation: number): TonemapMantiuk | null;
gamma

gamma value for gamma correction. See createTonemap

scale

contrast scale factor. HVS response is multiplied by this parameter, thus compressing dynamic range. Values from 0.6 to 0.9 produce best results.

saturation

saturation enhancement value. See createTonemapDrago

Returns

The TonemapMantiuk | 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.