mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
perf test: update error message about relative error
This commit is contained in:
parent
e35bc11504
commit
958604a68e
@ -476,6 +476,9 @@ void Regression::verify(cv::FileNode node, cv::InputArray array, double eps, ERR
|
||||
int violations = countViolations(expected, actual, diff, eps, &maxv, &maxa);
|
||||
if (violations > 0)
|
||||
{
|
||||
if(expected.total() * expected.channels() < 12)
|
||||
std::cout << " Expected: " << std::endl << expected << std::endl << " Actual:" << std::endl << actual << std::endl;
|
||||
|
||||
FAIL() << " Relative difference (" << maxv << " of " << maxa << " allowed) between argument \""
|
||||
<< node.name() << "[" << idx << "]\" and expected value is greater than " << eps << " in " << violations << " points";
|
||||
}
|
||||
@ -530,6 +533,9 @@ void Regression::verify(cv::FileNode node, cv::InputArray array, double eps, ERR
|
||||
int violations = countViolations(expected, actual, diff, eps, &maxv, &maxa);
|
||||
if (violations > 0)
|
||||
{
|
||||
if(expected.total() * expected.channels() < 12)
|
||||
std::cout << " Expected: " << std::endl << expected << std::endl << " Actual:" << std::endl << actual << std::endl;
|
||||
|
||||
FAIL() << " Relative difference (" << maxv << " of " << maxa << " allowed) between argument \"" << node.name()
|
||||
<< "\" and expected value is greater than " << eps << " in " << violations << " points";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user