| 35 | namespace { |
| 36 | |
| 37 | TEST(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 | |
| 47 | TEST(L2NormalizeFeatureDescriptors, Nominal) { |
| 48 | FeatureDescriptorsFloatData descriptors = Eigen::MatrixXf::Random(100, 128); |
nothing calls this directly
no test coverage detected