From b95923360d7f2fdcc9beb47fa3d13a09e0a2820a Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 9 Oct 2012 15:40:18 +0400 Subject: [PATCH] Add sanity checkes to video module perf tests --- modules/video/perf/perf_optflowpyrlk.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/video/perf/perf_optflowpyrlk.cpp b/modules/video/perf/perf_optflowpyrlk.cpp index b5445330db..07d896cf01 100644 --- a/modules/video/perf/perf_optflowpyrlk.cpp +++ b/modules/video/perf/perf_optflowpyrlk.cpp @@ -91,6 +91,10 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK_full, testing::Combine( Size(winSize, winSize), maxLevel, criteria, flags, minEigThreshold); } + + SANITY_CHECK(outPoints); + SANITY_CHECK(status); + SANITY_CHECK(err, 1e-5); } typedef tr1::tuple, int, bool> Path_Idx_Cn_NPoints_WSize_Deriv_t; @@ -166,6 +170,10 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize_Deriv, OpticalFlowPyrLK_self, testing::Com Size(winSize, winSize), maxLevel, criteria, flags, minEigThreshold); } + + SANITY_CHECK(outPoints); + SANITY_CHECK(status); + SANITY_CHECK(err, 1e-5); } CV_ENUM(PyrBorderMode, BORDER_DEFAULT, BORDER_TRANSPARENT);