Function for computing the percent of "bad" pixels in the disparity map
prcnt = cv.DisparityWLSFilter.computeBadPixelPercent(GT, src)
prcnt = cv.DisparityWLSFilter.computeBadPixelPercent(..., 'OptionName',optionValue, ...)
Input
- GT ground truth disparity map (
int16 or single).
- src disparity map to evaluate (
int16 or single).
Output
- prcnt returns percent of "bad" pixels between
GT and
src (pixels where error is higher than a specified
threshold).
Options
- ROI region of interest
[x,y,w,h]. Not set by default.
- Thresh threshold used to determine "bad" pixels. default 24