Method ComputeBadPixelPercent
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ComputeBadPixelPercent(InputArray, InputArray, Rect, int)
Function for computing the percent of "bad" pixels in the disparity map (pixels where error is higher than a specified threshold).
public static double ComputeBadPixelPercent(InputArray gt, InputArray src, Rect roi, int thresh = 24)
Parameters
gtInputArrayground truth disparity map.
srcInputArraydisparity map to evaluate.
roiRectregion of interest.
threshintthreshold used to determine "bad" pixels.
Returns
- double
returns mean square error between GT and src.