Commit 5d01821d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #16422 from alalek:issue_16419

parents 5265db82 4b2363de
...@@ -120,9 +120,13 @@ TEST_P(MathOpTest, MatricesAccuracyTest) ...@@ -120,9 +120,13 @@ TEST_P(MathOpTest, MatricesAccuracyTest)
CV_MAT_DEPTH(out_mat_ocv.type()) != CV_64F) CV_MAT_DEPTH(out_mat_ocv.type()) != CV_64F)
{ {
// integral: allow 1% of differences, and no diffs by >1 unit // integral: allow 1% of differences, and no diffs by >1 unit
EXPECT_LE(countNonZeroPixels(cv::abs(out_mat_gapi - out_mat_ocv) > 0), EXPECT_LE(cvtest::norm(out_mat_gapi, out_mat_ocv, NORM_INF), 1); // check: abs(a[i] - b[i]) <= 1
0.01*out_mat_ocv.total()); float tolerance = 0.01f;
EXPECT_LE(countNonZeroPixels(cv::abs(out_mat_gapi - out_mat_ocv) > 1), 0); #if defined(__arm__) || defined(__aarch64__)
if (opType == DIV)
tolerance = 0.05f;
#endif
EXPECT_LE(cvtest::norm(out_mat_gapi, out_mat_ocv, NORM_L1), tolerance*out_mat_ocv.total());
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment