ximgproc_WMFWeightType
import { ximgproc_WMFWeightType } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSConstructor or factory
CLASSximgproc_WMFWeightType
RETURN TYPEOwned native handle
Native object: release it with using or delete(). Factories can return null; check before calling methods.
Specifies weight types of weighted median filter.
Constructors and members
static WMF_EXP
exp(-|I1-I2|^2/(2*sigma^2))
WMF_EXP: ximgproc_WMFWeightTypeValue<1>,static WMF_IV1
(|I1-I2|+sigma)^-1
WMF_IV1: ximgproc_WMFWeightTypeValue<2>,static WMF_IV2
(|I1-I2|^2+sigma^2)^-1
WMF_IV2: ximgproc_WMFWeightTypeValue<4>,static WMF_COS
dot(I1,I2)/(|I1|*|I2|)
WMF_COS: ximgproc_WMFWeightTypeValue<8>,static WMF_JAC
(min(r1,r2)+min(g1,g2)+min(b1,b2))/(max(r1,r2)+max(g1,g2)+max(b1,b2))
WMF_JAC: ximgproc_WMFWeightTypeValue<16>,static WMF_OFF
ximgproc_WMFWeightType.WMF_OFF: unweighted
WMF_OFF: ximgproc_WMFWeightTypeValue<32>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.