Skip to content

ximgproc_createDisparityWLSFilterGeneric

Extended image processingfunctionOpenCV 5.0.0
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
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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_confidence

filtering 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.