createTonemapMantiuk
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;gammagamma value for gamma correction. See createTonemap
scalecontrast scale factor. HVS response is multiplied by this parameter, thus compressing dynamic range. Values from 0.6 to 0.9 produce best results.
saturationsaturation 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.