TonemapReinhard
import { TonemapReinhard } 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.
This is a global tonemapping operator that models human visual system.
Mapping function is controlled by adaptation parameter, that is computed using light adaptation and color adaptation.
For more information see [RD05] .
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.
getIntensity
Return the intensity configured on this TonemapReinhard object.
getIntensity(): number;The number result.
setIntensity
Set the intensity used by this TonemapReinhard object.
setIntensity(intensity: number): void;intensityintensity argument (number).
getLightAdaptation
Return the light adaptation configured on this TonemapReinhard object.
getLightAdaptation(): number;The number result.
setLightAdaptation
Set the light adaptation used by this TonemapReinhard object.
setLightAdaptation(light_adapt: number): void;light_adaptlight adapt argument (number).
getColorAdaptation
Return the color adaptation configured on this TonemapReinhard object.
getColorAdaptation(): number;The number result.
setColorAdaptation
Set the color adaptation used by this TonemapReinhard object.
setColorAdaptation(color_adapt: number): void;color_adaptcolor adapt 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.