From b8a67dc0e322c0f44391c4dae13de2e299bed475 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 11 Oct 2012 19:45:28 +0400 Subject: [PATCH] Adjust thresholds in sanity checks for calcOpticalFlowPyrLK --- modules/video/perf/perf_optflowpyrlk.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/video/perf/perf_optflowpyrlk.cpp b/modules/video/perf/perf_optflowpyrlk.cpp index 07d896cf01..0ac9efe7e7 100644 --- a/modules/video/perf/perf_optflowpyrlk.cpp +++ b/modules/video/perf/perf_optflowpyrlk.cpp @@ -92,9 +92,9 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK_full, testing::Combine( flags, minEigThreshold); } - SANITY_CHECK(outPoints); + SANITY_CHECK(outPoints, 0.3); SANITY_CHECK(status); - SANITY_CHECK(err, 1e-5); + SANITY_CHECK(err, 2); } typedef tr1::tuple, int, bool> Path_Idx_Cn_NPoints_WSize_Deriv_t; @@ -171,9 +171,9 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize_Deriv, OpticalFlowPyrLK_self, testing::Com flags, minEigThreshold); } - SANITY_CHECK(outPoints); + SANITY_CHECK(outPoints, 0.3); SANITY_CHECK(status); - SANITY_CHECK(err, 1e-5); + SANITY_CHECK(err, 2); } CV_ENUM(PyrBorderMode, BORDER_DEFAULT, BORDER_TRANSPARENT);