@@ -89,9 +89,7 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK_full, testing::Combine(
89
89
flags, minEigThreshold);
90
90
}
91
91
92
- SANITY_CHECK (outPoints, 0.3 );
93
- SANITY_CHECK (status);
94
- SANITY_CHECK (err, 2 );
92
+ SANITY_CHECK_NOTHING ();
95
93
}
96
94
97
95
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(
142
140
flags, minEigThreshold);
143
141
}
144
142
145
- SANITY_CHECK (outPoints, 0.3 );
146
- SANITY_CHECK (status);
143
+ SANITY_CHECK_NOTHING ();
147
144
}
148
145
149
146
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
222
219
flags, minEigThreshold);
223
220
}
224
221
225
- SANITY_CHECK (outPoints, 0.3 );
226
- SANITY_CHECK (status);
227
- SANITY_CHECK (err, 2 );
222
+ SANITY_CHECK_NOTHING ();
228
223
}
229
224
230
225
CV_ENUM (PyrBorderMode, BORDER_DEFAULT, BORDER_TRANSPARENT)
@@ -266,7 +261,9 @@ PERF_TEST_P(Path_Win_Deriv_Border_Reuse, OpticalFlowPyrLK_pyr, testing::Combine(
266
261
buildOpticalFlowPyramid (img, pyramid, winSize, maxLevel, withDerivatives, pyrBorder, derivBorder, tryReuseInputImage);
267
262
}
268
263
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 ();
270
267
}
271
268
272
269
}} // namespace
0 commit comments