Table of Contents

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

gt InputArray

ground truth disparity map.

src InputArray

disparity map to evaluate.

roi Rect

region of interest.

thresh int

threshold used to determine "bad" pixels.

Returns

double

returns mean square error between GT and src.