Skip to content

Commit

Permalink
Fix Libmv tests after recent fix
Browse files Browse the repository at this point in the history
Forgot to update regression test to the changed API.
  • Loading branch information
sergeyvfx committed Mar 15, 2021
1 parent e7f59e6 commit 1b29e84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions intern/libmv/libmv/autotrack/predict_tracks_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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);
Expand Down

0 comments on commit 1b29e84

Please sign in to comment.