Merge pull request #336 from ivan-korolev:fix_relative_error_formula

This commit is contained in:
Andrey Kamaev 2013-01-25 14:10:06 +04:00 committed by OpenCV Buildbot
commit dc11acf041

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;
}