1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Fixed a formula to calculate the relative error

This commit is contained in:
Ivan Korolev
2013-01-25 11:19:38 +04:00
parent 33ca4ba5c7
commit 6385b0f7ed
+1 -1
View File
@@ -335,7 +335,7 @@ static double evalEps(double expected, double actual, double _eps, ERROR_TYPE er
if (err == ERROR_ABSOLUTE)
return _eps;
else if (err == ERROR_RELATIVE)
return std::max(std::abs(expected), std::abs(actual)) * err;
return std::max(std::abs(expected), std::abs(actual)) * _eps;
return 0;
}