Function lib3d::computeBinaryError

Function Documentation

cv::Mat lib3d::computeBinaryError(const cv::Mat &iComputedBinaryMask, const cv::Mat &iGroundtruthBinaryMask, float &oTruePositiveRate, float &oFalseNegativeRate, float &oFalsePositiveRate, float &oTrueNegativeRate)

Method to compute the pixel wise error between two binary masks.

Parameters:
  • iComputedBinaryMask[in] Computed binary mask.

  • iGroundtruthBinaryMask[in] Ground truth binary mask.

  • oTruePositiveRate[out] Rate of true positive, i.e. pixels in which both iComputedBinaryMask = 1 and iGroundtruthBinaryMask = 1.

  • oFalseNegativeRate[out] Rate of false negatives, i.e. pixels in which iComputedBinaryMask = 0 and iGroundtruthBinaryMask = 1.

  • oFalsePositiveRate[out] Rate of false positives, i.e. pixels in which both iComputedBinaryMask = 1 and iGroundtruthBinaryMask = 0.

  • oTrueNegativeRate[out] Rate of false positives, i.e. pixels in which both iComputedBinaryMask = 0 and iGroundtruthBinaryMask = 0.

Returns:

Colored change mask. Green equals regions of true positives, red of flase positives and blue of false negatives