1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

merged new master branch

changed tests for tvl1 optflow
correction of a bug preventing compilation with cuda (fmin changed to fminf)
This commit is contained in:
Ernest Galbrun
2014-08-18 15:29:45 +02:00
parent fae69df9a9
commit 6207d338dd
3 changed files with 10 additions and 5 deletions
+7 -1
View File
@@ -166,7 +166,13 @@ TEST(Video_calcOpticalFlowDual_TVL1, Regression)
ASSERT_EQ(gold.rows, flow.rows);
ASSERT_EQ(gold.cols, flow.cols);
const double err = calcRMSE(gold, flow);
double err = calcRMSE(gold, flow);
EXPECT_LE(err, MAX_RMSE);
tvl1->set("gamma", 1.f);
tvl1->calc(frame1, frame2, flow);
ASSERT_EQ(gold.rows, flow.rows);
ASSERT_EQ(gold.cols, flow.cols);
err = calcRMSE(gold, flow);
EXPECT_LE(err, MAX_RMSE);
#endif
}