Fix T50243: libmv_panography_test is broken

There was fully wrong logic in comparison: was actually accessing memory
past the array boundary. Run test manually and the figure seems correct
to me now.

Spotted by @LazyDodo, thanks!
This commit is contained in:
Sergey Sharybin 2016-12-14 10:44:57 +01:00
parent c21a5139e1
commit fbcd51aef8
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #50243, libmv_panography_test is broken.
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ TEST(Panography, PrintSomeSharedFocalEstimationValues) {
// Assert we found a valid solution.
EXPECT_EQ(1, fs.size());
EXPECT_NEAR(1.01667, fs[1], 1e-3);
EXPECT_NEAR(3.47194, fs[0], 1e-3);
}
TEST(Panography, GetR_FixedCameraCenterWithIdentity) {