Skip to content

Commit

Permalink
Merge pull request #22471 from anna-khakimova:ak/fix_resize4lpi_tests
Browse files Browse the repository at this point in the history
Increasing tolerance for Preproc4lpiTest set on ARM
  • Loading branch information
asmorkalov committed Mar 24, 2023
2 parents a4ff46a + 0bb8409 commit b56a52c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/gapi/test/gapi_fluid_resize_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,11 @@ TEST_P(Preproc4lpiTest, Test)
cv::cvtColor(in_mat, rgb_mat, cv::COLOR_YUV2RGB_NV12);
cv::resize(rgb_mat, out_mat_ocv, out_sz, 0, 0, interp);

#if defined(__arm__) || defined(__aarch64__)
EXPECT_GE(2, cvtest::norm(out_mat(roi), out_mat_ocv(roi), NORM_INF));
#else
EXPECT_EQ(0, cvtest::norm(out_mat(roi), out_mat_ocv(roi), NORM_INF));
#endif
}

INSTANTIATE_TEST_CASE_P(Fluid, Preproc4lpiTest,
Expand Down

0 comments on commit b56a52c

Please sign in to comment.