ximgproc_edgePreservingFilter
import { ximgproc_edgePreservingFilter } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcSource 8-bit 3-channel image.
dstOutput destination, filled by the native operation. Destination image of the same size and type as src.
dDiameter of each pixel neighborhood that is used during filtering. Must be greater or equal 3.
thresholdThreshold, 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.