Skip to content

edgePreservingFilter

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

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

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

Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing filters are used in many different applications [EM11] .

edgePreservingFilter(src: Mat, dst: Mat, flags: number, sigma_s: number, sigma_r: number): void;
4 available overloads
edgePreservingFilter(src: Mat, dst: Mat): void;
edgePreservingFilter(src: Mat, dst: Mat, flags: number): void;
edgePreservingFilter(src: Mat, dst: Mat, flags: number, sigma_s: number): void;
edgePreservingFilter(src: Mat, dst: Mat, flags: number, sigma_s: number, sigma_r: number): void;
src

Input 8-bit 3-channel image.

dst

Output destination, filled by the native operation. Output 8-bit 3-channel image.

flags

Edge preserving filters: cv::RECURS_FILTER or cv::NORMCONV_FILTER

sigma_s

%Range between 0 to 200.

sigma_r

%Range between 0 to 1.

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.