Skip to content

ximgproc_computeBadPixelPercent

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_computeBadPixelPercent } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSGT, src, ROI, thresh
FUNCTIONximgproc_computeBadPixelPercent
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Function for computing the percent of "bad" pixels in the disparity map (pixels where error is higher than a specified threshold)

result: returns mean square error between GT and src

ximgproc_computeBadPixelPercent(GT: Mat, src: Mat, ROI: Rect, thresh: number): number;
2 available overloads
ximgproc_computeBadPixelPercent(GT: Mat, src: Mat, ROI: Rect): number;
ximgproc_computeBadPixelPercent(GT: Mat, src: Mat, ROI: Rect, thresh: number): number;
GT

ground truth disparity map

src

disparity map to evaluate

ROI

region of interest

thresh

threshold used to determine "bad" pixels

Returns

The number 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.