Skip to content

fastNlMeansDenoisingColoredMulti

Computational photographyfunctionOpenCV 5.0.0
import { fastNlMeansDenoisingColoredMulti } from '@banou/opencv-wasm'

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

ARGUMENTSsrcImgs, dst, imgToDenoiseIndex, temporalWindowSize
FUNCTIONfastNlMeansDenoisingColoredMulti
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Modification of fastNlMeansDenoisingMulti function for colored images sequences

fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: number, hColor: number, templateWindowSize: number, searchWindowSize: number): void;
5 available overloads
fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number): void;
fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: number): void;
fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: number, hColor: number): void;
fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: number, hColor: number, templateWindowSize: number): void;
fastNlMeansDenoisingColoredMulti(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: number, hColor: number, templateWindowSize: number, searchWindowSize: number): void;
srcImgs

Input 8-bit 3-channel images sequence. All images should have the same type and size.

dst

Output destination, filled by the native operation. Output image with the same size and type as srcImgs images.

imgToDenoiseIndex

Target image to denoise index in srcImgs sequence

temporalWindowSize

Number of surrounding images to use for target image denoising. Should be odd. Images from imgToDenoiseIndex - temporalWindowSize / 2 to imgToDenoiseIndex + temporalWindowSize / 2 from srcImgs will be used to denoise srcImgs[imgToDenoiseIndex] image.

h

Parameter regulating filter strength for luminance component. Bigger h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise.

hColor

The same as h but for color components.

The function converts images to CIELAB colorspace and then separately denoise L and AB components with given h parameters using fastNlMeansDenoisingMulti function.

templateWindowSize

Size in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels

searchWindowSize

Size in pixels of the window that is used to compute weighted average for given pixel. Should be odd. Affect performance linearly: greater searchWindowsSize - greater denoising time. Recommended value 21 pixels

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.