ximgproc_amFilter
import { ximgproc_amFilter } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;jointjoint (also called as guided) image or array of images with any numbers of channels.
srcfiltering image with any numbers of channels.
dstOutput destination, filled by the native operation. output image.
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.
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.