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

Function TEST

src/colmap/geometry/normalization_test.cc:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace {
38
39TEST(ComputeBoundingBoxAndCentroid, SingleCoord) {
40 const auto [bbox, centroid] =
41 ComputeBoundingBoxAndCentroid(0, 1, {1}, {2}, {3});
42 EXPECT_EQ(bbox.min(), Eigen::Vector3d(1, 2, 3));
43 EXPECT_EQ(bbox.max(), Eigen::Vector3d(1, 2, 3));
44 EXPECT_EQ(centroid, Eigen::Vector3d(1, 2, 3));
45}
46
47TEST(ComputeBoundingBoxAndCentroid, TwoCoords) {
48 const auto [bbox, centroid] =

Callers

nothing calls this directly

Calls 3

EigenMatrixNearFunction · 0.85

Tested by

no test coverage detected