ximgproc_createAMFilter
import { ximgproc_createAMFilter } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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_sspatial standard deviation.
sigma_rcolor space standard deviation, it is similar to the sigma in the color space into bilateralFilter.
adjust_outliersoptional, 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] .
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.