xphoto_createTonemapDurand
import { xphoto_createTonemapDurand } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;gammagamma value for gamma correction. See createTonemap
contrastresulting contrast on logarithmic scale, i. e. log(max / min), where max and min are maximum and minimum luminance values of the resulting image.
saturationsaturation enhancement value. See createTonemapDrago
sigma_colorbilateral filter sigma in color space
sigma_spacebilateral filter sigma in coordinate space
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.