diff --git a/modules/stitching/perf/opencl/perf_stitch.cpp b/modules/stitching/perf/opencl/perf_stitch.cpp index 314e5a0fb0..48a9745f0a 100644 --- a/modules/stitching/perf/opencl/perf_stitch.cpp +++ b/modules/stitching/perf/opencl/perf_stitch.cpp @@ -93,8 +93,8 @@ OCL_PERF_TEST_P(stitch, b12, TEST_DETECTORS) stopTimer(); } - EXPECT_NEAR(pano.size().width, 1124, 50); - EXPECT_NEAR(pano.size().height, 644, 30); + EXPECT_NEAR(pano.size().width, 1124, GetParam() == "surf" ? 100 : 50); + EXPECT_NEAR(pano.size().height, 644, GetParam() == "surf" ? 60 : 30); SANITY_CHECK_NOTHING(); } diff --git a/modules/stitching/perf/perf_stich.cpp b/modules/stitching/perf/perf_stich.cpp index f0ac6561ff..8281c0fc47 100644 --- a/modules/stitching/perf/perf_stich.cpp +++ b/modules/stitching/perf/perf_stich.cpp @@ -89,8 +89,8 @@ PERF_TEST_P(stitch, b12, TEST_DETECTORS) stopTimer(); } - EXPECT_NEAR(pano.size().width, 1117, 50); - EXPECT_NEAR(pano.size().height, 642, 30); + EXPECT_NEAR(pano.size().width, 1117, GetParam() == "surf" ? 100 : 50); + EXPECT_NEAR(pano.size().height, 642, GetParam() == "surf" ? 60 : 30); SANITY_CHECK_NOTHING(); }