MCPcopy Create free account
hub / github.com/colmap/colmap / TEST

Function TEST

src/colmap/geometry/pose_test.cc:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace {
42
43TEST(ComputeClosestRotationMatrix, Nominal) {
44 const Eigen::Matrix3d A = Eigen::Matrix3d::Identity();
45 EXPECT_THAT(ComputeClosestRotationMatrix(A), EigenMatrixNear(A, 1e-6));
46 EXPECT_THAT(ComputeClosestRotationMatrix(2 * A), EigenMatrixNear(A, 1e-6));
47}
48
49TEST(DecomposeProjectionMatrix, Nominal) {
50 for (int i = 1; i < 100; ++i) {

Callers

nothing calls this directly

Calls 15

EigenMatrixNearFunction · 0.85
AverageQuaternionsFunction · 0.85
InterpolateCameraPosesFunction · 0.85
CheckCheiralityFunction · 0.85
AverageUnitVectorsFunction · 0.85
AverageDirectionsFunction · 0.85

Tested by

no test coverage detected