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);
|
int violations = countViolations(expected, actual, diff, eps, &maxv, &maxa);
|
||||||
if (violations > 0)
|
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 \""
|
FAIL() << " Relative difference (" << maxv << " of " << maxa << " allowed) between argument \""
|
||||||
<< node.name() << "[" << idx << "]\" and expected value is greater than " << eps << " in " << violations << " points";
|
<< 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);
|
int violations = countViolations(expected, actual, diff, eps, &maxv, &maxa);
|
||||||
if (violations > 0)
|
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()
|
FAIL() << " Relative difference (" << maxv << " of " << maxa << " allowed) between argument \"" << node.name()
|
||||||
<< "\" and expected value is greater than " << eps << " in " << violations << " points";
|
<< "\" and expected value is greater than " << eps << " in " << violations << " points";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user