[Bf-blender-cvs] [1b29e84c18d] master: Fix Libmv tests after recent fix

Sergey Sharybin noreply at git.blender.org
Mon Mar 15 16:11:52 CET 2021


Commit: 1b29e84c18dc3ba2983d33d2398857add4cda70a
Author: Sergey Sharybin
Date:   Mon Mar 15 16:11:10 2021 +0100
Branches: master
https://developer.blender.org/rB1b29e84c18dc3ba2983d33d2398857add4cda70a

Fix Libmv tests after recent fix

Forgot to update regression test to the changed API.

===================================================================

M	intern/libmv/libmv/autotrack/predict_tracks_test.cc

===================================================================

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);



More information about the Bf-blender-cvs mailing list