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

Function TEST

src/colmap/feature/utils_test.cc:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace {
36
37TEST(FeatureKeypointsToPointsVector, Nominal) {
38 FeatureKeypoints keypoints(2);
39 keypoints[1].x = 0.1;
40 keypoints[1].y = 0.2;
41 const std::vector<Eigen::Vector2d> points =
42 FeatureKeypointsToPointsVector(keypoints);
43 EXPECT_EQ(points[0], Eigen::Vector2d(0, 0));
44 EXPECT_EQ(points[1].cast<float>(), Eigen::Vector2f(0.1, 0.2));
45}
46
47TEST(L2NormalizeFeatureDescriptors, Nominal) {
48 FeatureDescriptorsFloatData descriptors = Eigen::MatrixXf::Random(100, 128);

Callers

nothing calls this directly

Calls 8

ExtractTopScaleFeaturesFunction · 0.85
sizeMethod · 0.80
ComputeScaleMethod · 0.80
RescaleMethod · 0.45

Tested by

no test coverage detected