Skip to content

xphoto_TonemapDurand

xphotoclassOpenCV 5.0.0
import { xphoto_TonemapDurand } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSxphoto_TonemapDurand
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 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;
Returns

The this result.

getSaturation

Return the saturation configured on this xphoto_TonemapDurand object.

getSaturation(): number;
Returns

The number result.

setSaturation

Set the saturation used by this xphoto_TonemapDurand object.

setSaturation(saturation: number): void;
saturation

saturation argument (number).

getContrast

Return the contrast configured on this xphoto_TonemapDurand object.

getContrast(): number;
Returns

The number result.

setContrast

Set the contrast used by this xphoto_TonemapDurand object.

setContrast(contrast: number): void;
contrast

contrast argument (number).

getSigmaSpace

Return the sigma space configured on this xphoto_TonemapDurand object.

getSigmaSpace(): number;
Returns

The number result.

setSigmaSpace

Set the sigma space used by this xphoto_TonemapDurand object.

setSigmaSpace(sigma_space: number): void;
sigma_space

sigma space argument (number).

getSigmaColor

Return the sigma color configured on this xphoto_TonemapDurand object.

getSigmaColor(): number;
Returns

The number result.

setSigmaColor

Set the sigma color used by this xphoto_TonemapDurand object.

setSigmaColor(sigma_color: number): void;
sigma_color

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