Skip to content

ximgproc_createAMFilter

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

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

ARGUMENTSsigma_s, sigma_r, adjust_outliers
FUNCTIONximgproc_createAMFilter
RETURN TYPEximgproc_AdaptiveManifoldFilter | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Factory method, create instance of AdaptiveManifoldFilter and produce some initialization routines.

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.

ximgproc_createAMFilter(sigma_s: number, sigma_r: number, adjust_outliers: boolean): ximgproc_AdaptiveManifoldFilter | null;
2 available overloads
ximgproc_createAMFilter(sigma_s: number, sigma_r: number): ximgproc_AdaptiveManifoldFilter | null;
ximgproc_createAMFilter(sigma_s: number, sigma_r: number, adjust_outliers: boolean): ximgproc_AdaptiveManifoldFilter | null;
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.

For more details about Adaptive Manifold Filter parameters, see the original article [Gastal12] .

Returns

The ximgproc_AdaptiveManifoldFilter | null result.

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.