fastNlMeansDenoisingMulti1
import { fastNlMeansDenoisingMulti1 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Modification of fastNlMeansDenoising function for images sequence where consecutive images have been captured in small period of time. For example video. This version of the function is for grayscale images or for manual manipulation with colorspaces. See [Buades2005DenoisingIS] for more details (open access here).
fastNlMeansDenoisingMulti1(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: FloatVector, templateWindowSize: number, searchWindowSize: number, normType: number): void;4 available overloads
fastNlMeansDenoisingMulti1(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: FloatVector): void;fastNlMeansDenoisingMulti1(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: FloatVector, templateWindowSize: number): void;fastNlMeansDenoisingMulti1(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: FloatVector, templateWindowSize: number, searchWindowSize: number): void;fastNlMeansDenoisingMulti1(srcImgs: MatVector, dst: Mat, imgToDenoiseIndex: number, temporalWindowSize: number, h: FloatVector, templateWindowSize: number, searchWindowSize: number, normType: number): void;srcImgsInput 8-bit or 16-bit (only with NORM_L1) 1-channel, 2-channel, 3-channel or 4-channel images sequence. All images should have the same type and size.
dstOutput destination, filled by the native operation. Output image with the same size and type as srcImgs images.
imgToDenoiseIndexTarget image to denoise index in srcImgs sequence
temporalWindowSizeNumber 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.
hArray of parameters regulating filter strength, either one parameter applied to all channels or one per channel in dst. Big h value perfectly removes noise but also removes image details, smaller h value preserves details but also preserves some noise
templateWindowSizeSize in pixels of the template patch that is used to compute weights. Should be odd. Recommended value 7 pixels
searchWindowSizeSize 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
normTypeType of norm used for weight calculation. Can be either NORM_L2 or NORM_L1
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.