mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #336 from ivan-korolev:fix_relative_error_formula
This commit is contained in:
commit
dc11acf041
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user