xphoto_TonemapDurand
import { xphoto_TonemapDurand } 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 xphoto_Tonemap.
This algorithm decomposes image into two layers: base layer and detail layer using bilateral filter and compresses contrast of the base layer thus preserving all the details.
This implementation uses regular bilateral filter from OpenCV.
Saturation enhancement is possible as in cv::TonemapDrago.
For more information see [DD02] .
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 xphoto_TonemapDurand object.
getSaturation(): number;The number result.
setSaturation
Set the saturation used by this xphoto_TonemapDurand object.
setSaturation(saturation: number): void;saturationsaturation argument (number).
getContrast
Return the contrast configured on this xphoto_TonemapDurand object.
getContrast(): number;The number result.
setContrast
Set the contrast used by this xphoto_TonemapDurand object.
setContrast(contrast: number): void;contrastcontrast argument (number).
getSigmaSpace
Return the sigma space configured on this xphoto_TonemapDurand object.
getSigmaSpace(): number;The number result.
setSigmaSpace
Set the sigma space used by this xphoto_TonemapDurand object.
setSigmaSpace(sigma_space: number): void;sigma_spacesigma space argument (number).
getSigmaColor
Return the sigma color configured on this xphoto_TonemapDurand object.
getSigmaColor(): number;The number result.
setSigmaColor
Set the sigma color used by this xphoto_TonemapDurand object.
setSigmaColor(sigma_color: number): void;sigma_colorsigma color 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.