Skip to content

TonemapDrago

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

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

ARGUMENTSConstructor or factory
CLASSTonemapDrago
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.

Adaptive logarithmic mapping is a fast global tonemapping algorithm that scales the image in logarithmic domain.

Since it's a global operator the same function is applied to all the pixels, it is controlled by the bias parameter.

Optional saturation enhancement is possible as described in [FL02] .

For more information see [DM03] .

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.

getSaturation

Return the saturation configured on this TonemapDrago object.

getSaturation(): number;
Returns

The number result.

setSaturation

Set the saturation used by this TonemapDrago object.

setSaturation(saturation: number): void;
saturation

saturation argument (number).

getBias

Return the bias configured on this TonemapDrago object.

getBias(): number;
Returns

The number result.

setBias

Set the bias used by this TonemapDrago object.

setBias(bias: number): void;
bias

bias 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.