Skip to content

Commit 8eba3c1

Browse files
committed
Merge pull request opencv#12462 from alalek:issue_12453
2 parents 73bfe68 + af021e7 commit 8eba3c1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

modules/video/perf/perf_optflowpyrlk.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK_full, testing::Combine(
8989
flags, minEigThreshold);
9090
}
9191

92-
SANITY_CHECK(outPoints, 0.3);
93-
SANITY_CHECK(status);
94-
SANITY_CHECK(err, 2);
92+
SANITY_CHECK_NOTHING();
9593
}
9694

9795
typedef tuple<std::string, int, tuple<int, int>, int> Path_Idx_NPoints_WSize_t;
@@ -142,8 +140,7 @@ PERF_TEST_P(Path_Idx_NPoints_WSize, OpticalFlowPyrLK_ovx, testing::Combine(
142140
flags, minEigThreshold);
143141
}
144142

145-
SANITY_CHECK(outPoints, 0.3);
146-
SANITY_CHECK(status);
143+
SANITY_CHECK_NOTHING();
147144
}
148145

149146
typedef tuple<std::string, int, int, tuple<int,int>, int, bool> Path_Idx_Cn_NPoints_WSize_Deriv_t;
@@ -222,9 +219,7 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize_Deriv, OpticalFlowPyrLK_self, testing::Com
222219
flags, minEigThreshold);
223220
}
224221

225-
SANITY_CHECK(outPoints, 0.3);
226-
SANITY_CHECK(status);
227-
SANITY_CHECK(err, 2);
222+
SANITY_CHECK_NOTHING();
228223
}
229224

230225
CV_ENUM(PyrBorderMode, BORDER_DEFAULT, BORDER_TRANSPARENT)
@@ -266,7 +261,9 @@ PERF_TEST_P(Path_Win_Deriv_Border_Reuse, OpticalFlowPyrLK_pyr, testing::Combine(
266261
buildOpticalFlowPyramid(img, pyramid, winSize, maxLevel, withDerivatives, pyrBorder, derivBorder, tryReuseInputImage);
267262
}
268263

269-
SANITY_CHECK(pyramid);
264+
size_t expected_layers = ((size_t)maxLevel + 1) * (withDerivatives ? 2 : 1);
265+
ASSERT_EQ(expected_layers, pyramid.size());
266+
SANITY_CHECK_NOTHING();
270267
}
271268

272269
}} // namespace

0 commit comments

Comments
 (0)