Skip to content

xphoto_createTonemapDurand

xphotofunctionOpenCV 5.0.0
import { xphoto_createTonemapDurand } from '@banou/opencv-wasm'

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

ARGUMENTSgamma, contrast, saturation, sigma_color
FUNCTIONxphoto_createTonemapDurand
RETURN TYPExphoto_TonemapDurand | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates TonemapDurand object

You need to set the OPENCV_ENABLE_NONFREE option in cmake to use those. Use them at your own risk.

xphoto_createTonemapDurand(gamma: number, contrast: number, saturation: number, sigma_color: number, sigma_space: number): xphoto_TonemapDurand | null;
6 available overloads
xphoto_createTonemapDurand(): xphoto_TonemapDurand | null;
xphoto_createTonemapDurand(gamma: number): xphoto_TonemapDurand | null;
xphoto_createTonemapDurand(gamma: number, contrast: number): xphoto_TonemapDurand | null;
xphoto_createTonemapDurand(gamma: number, contrast: number, saturation: number): xphoto_TonemapDurand | null;
xphoto_createTonemapDurand(gamma: number, contrast: number, saturation: number, sigma_color: number): xphoto_TonemapDurand | null;
xphoto_createTonemapDurand(gamma: number, contrast: number, saturation: number, sigma_color: number, sigma_space: number): xphoto_TonemapDurand | null;
gamma

gamma value for gamma correction. See createTonemap

contrast

resulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.

saturation

saturation enhancement value. See createTonemapDrago

sigma_color

bilateral filter sigma in color space

sigma_space

bilateral filter sigma in coordinate space

Returns

The xphoto_TonemapDurand | null result.

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.