Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-03-15 18:11:10 +0300
committerSergey Sharybin <sergey@blender.org>2021-03-15 18:11:37 +0300
commit1b29e84c18dc3ba2983d33d2398857add4cda70a (patch)
tree7221525deaca0206a16e6633783fa277c90d0d7d /intern/libmv
parente7f59e6f94cd61a6ebc6fb7d7fcfc83c97e2b3c0 (diff)
Fix Libmv tests after recent fix
Forgot to update regression test to the changed API.
Diffstat (limited to 'intern/libmv')
-rw-r--r--intern/libmv/libmv/autotrack/predict_tracks_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/intern/libmv/libmv/autotrack/predict_tracks_test.cc b/intern/libmv/libmv/autotrack/predict_tracks_test.cc
index fea93b91bce..e45fcadd934 100644
--- a/intern/libmv/libmv/autotrack/predict_tracks_test.cc
+++ b/intern/libmv/libmv/autotrack/predict_tracks_test.cc
@@ -56,7 +56,7 @@ TEST(PredictMarkerPosition, EasyLinearMotion) {
predicted.track = 0;
predicted.frame = 8;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
EXPECT_LT(error, 0.1);
@@ -88,7 +88,7 @@ TEST(PredictMarkerPosition, EasyBackwardLinearMotion) {
predicted.track = 0;
predicted.frame = 0;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
LG << predicted;
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
@@ -121,7 +121,7 @@ TEST(PredictMarkerPosition, TwoFrameGap) {
predicted.track = 0;
predicted.frame = 8;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
EXPECT_LT(error, 0.1);
@@ -140,7 +140,7 @@ TEST(PredictMarkerPosition, FourFrameGap) {
predicted.track = 0;
predicted.frame = 8;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
EXPECT_LT(error, 2.0); // Generous error due to larger prediction window.
@@ -162,7 +162,7 @@ TEST(PredictMarkerPosition, MultipleGaps) {
predicted.track = 0;
predicted.frame = 8;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
EXPECT_LT(error, 1.0); // Generous error due to larger prediction window.
@@ -186,7 +186,7 @@ TEST(PredictMarkerPosition, MarkersInRandomOrder) {
predicted.track = 0;
predicted.frame = 8;
- PredictMarkerPosition(tracks, &predicted);
+ PredictMarkerPosition(tracks, PredictDirection::AUTO, &predicted);
double error = (libmv::Vec2f(9.0, 40.0) - predicted.center).norm();
LG << "Got error: " << error;
EXPECT_LT(error, 0.1);