ximgproc_createDisparityWLSFilterGeneric
import { ximgproc_createDisparityWLSFilterGeneric } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSuse_confidence
FUNCTIONximgproc_createDisparityWLSFilterGeneric
RETURN TYPEximgproc_DisparityWLSFilter | null
More generic factory method, create instance of DisparityWLSFilter and execute basic initialization routines. When using this method you will need to set-up the ROI, matchers and other parameters by yourself.
ximgproc_createDisparityWLSFilterGeneric(use_confidence: boolean): ximgproc_DisparityWLSFilter | null;use_confidencefiltering with confidence requires two disparity maps (for the left and right views) and is approximately two times slower. However, quality is typically significantly better.
Returns
The ximgproc_DisparityWLSFilter | 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.