TonemapDrago
import { TonemapDrago } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;The this result.
getSaturation
Return the saturation configured on this TonemapDrago object.
getSaturation(): number;The number result.
setSaturation
Set the saturation used by this TonemapDrago object.
setSaturation(saturation: number): void;saturationsaturation argument (number).
getBias
Return the bias configured on this TonemapDrago object.
getBias(): number;The number result.
setBias
Set the bias used by this TonemapDrago object.
setBias(bias: number): void;biasbias 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.