Skip to content

ximgproc_edgePreservingFilter

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_edgePreservingFilter } from '@banou/opencv-wasm'

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

ARGUMENTSsrc, dst, d, threshold
FUNCTIONximgproc_edgePreservingFilter
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Smoothes an image using the Edge-Preserving filter.

The function smoothes Gaussian noise as well as salt & pepper noise. For more details about this implementation, please see [ReiWoe18] Reich, S. and Wörgötter, F. and Dellen, B. (2018). A Real-Time Edge-Preserving Denoising Filter. Proceedings of the 13th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP): Visapp, 85-94, 4. DOI: 10.5220/0006509000850094.

ximgproc_edgePreservingFilter(src: Mat, dst: Mat, d: number, threshold: number): void;
src

Source 8-bit 3-channel image.

dst

Output destination, filled by the native operation. Destination image of the same size and type as src.

d

Diameter of each pixel neighborhood that is used during filtering. Must be greater or equal 3.

threshold

Threshold, which distinguishes between noise, outliers, and data.

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.