Skip to content

ximgproc_amFilter

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

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

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

Simple one-line Adaptive Manifold Filter call.

Note: Joint images with CV_8U and CV_16U depth converted to images with CV_32F depth and [0; 1] color range before processing. Hence color space sigma sigma_r must be in [0; 1] range, unlike same sigmas in bilateralFilter and dtFilter functions. See: bilateralFilter, dtFilter, guidedFilter

ximgproc_amFilter(joint: Mat, src: Mat, dst: Mat, sigma_s: number, sigma_r: number, adjust_outliers: boolean): void;
2 available overloads
ximgproc_amFilter(joint: Mat, src: Mat, dst: Mat, sigma_s: number, sigma_r: number): void;
ximgproc_amFilter(joint: Mat, src: Mat, dst: Mat, sigma_s: number, sigma_r: number, adjust_outliers: boolean): void;
joint

joint (also called as guided) image or array of images with any numbers of channels.

src

filtering image with any numbers of channels.

dst

Output destination, filled by the native operation. output image.

sigma_s

spatial standard deviation.

sigma_r

color space standard deviation, it is similar to the sigma in the color space into bilateralFilter.

adjust_outliers

optional, specify perform outliers adjust operation or not, (Eq. 9) in the original paper.

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.