Commit fb73e7b4 authored by Ilya Lavrenov's avatar Ilya Lavrenov

fixed pyrlk optical flow

parent cca2e5d8
This diff is collapsed.
......@@ -251,7 +251,6 @@ TEST_P(Sparse, Mat)
cv::Point2i b = nextPts_gold[i];
bool eq = std::abs(a.x - b.x) < 1 && std::abs(a.y - b.y) < 1;
//float errdiff = std::abs(err[i] - err_gold[i]);
float errdiff = 0.0f;
if (!eq || errdiff > 1e-1)
......@@ -262,12 +261,10 @@ TEST_P(Sparse, Mat)
double bad_ratio = static_cast<double>(mistmatch) / (nextPts.size());
ASSERT_LE(bad_ratio, 0.02f);
}
INSTANTIATE_TEST_CASE_P(OCL_Video, Sparse, Combine(
Values(false, true),
Values(false, true)));
INSTANTIATE_TEST_CASE_P(OCL_Video, Sparse, Combine(Bool(), Bool()));
//////////////////////////////////////////////////////
// FarnebackOpticalFlow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment