From 522cfa77b8f588a1cac5fe1c7499a0ffde4f857b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 31 Oct 2016 13:36:19 +0300 Subject: [PATCH] test: don't check magic values in stitching perf test --- modules/stitching/perf/perf_stich.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/modules/stitching/perf/perf_stich.cpp b/modules/stitching/perf/perf_stich.cpp index 5a6d0237e9..ded2571585 100644 --- a/modules/stitching/perf/perf_stich.cpp +++ b/modules/stitching/perf/perf_stich.cpp @@ -94,25 +94,7 @@ PERF_TEST_P(stitch, b12, TEST_DETECTORS) EXPECT_NEAR(pano.size().width, 1117, 50); EXPECT_NEAR(pano.size().height, 642, 30); - Mat pano_small; - resize(pano, pano_small, Size(320, 240), 0, 0, INTER_AREA); - - // results from orb and surf are slightly different (but both of them are good). Regression data - // are for orb. - /* transformations are: - orb: - [0.99213386, 0.062509097, -351.83731; - -0.073042989, 1.0615162, -89.869858; - 0.0005330033, -4.0937066e-05, 1] - surf: - [1.0034728, 0.022535477, -352.76849; - -0.080653802, 1.0742083, -89.602058; - 0.0004876224, 0.00012311155, 1] - */ - if (GetParam() == "orb") - SANITY_CHECK(pano_small, 5); - else - SANITY_CHECK_NOTHING(); + SANITY_CHECK_NOTHING(); } PERF_TEST_P(stitchDatasets, affine, testing::Combine(AFFINE_DATASETS, TEST_DETECTORS))