ximgproc_computeBadPixelPercent
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
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;GTground truth disparity map
srcdisparity map to evaluate
ROIregion of interest
threshthreshold 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.