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

Function KeypointsFromMatrix

src/colmap/feature/types.cc:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235FeatureKeypoints KeypointsFromMatrix(
236 const Eigen::Ref<const FeatureKeypointsMatrix>& keypoints) {
237 FeatureKeypoints feature_keypoints(keypoints.rows());
238 for (Eigen::Index i = 0; i < keypoints.rows(); ++i) {
239 feature_keypoints[i] = FeatureKeypoint(
240 keypoints(i, 0), keypoints(i, 1), keypoints(i, 2), keypoints(i, 3));
241 }
242 return feature_keypoints;
243}
244
245FeatureMatchesMatrix MatchesToMatrix(const FeatureMatches& feature_matches) {
246 const size_t num_matches = feature_matches.size();

Callers 1

TESTFunction · 0.85

Calls 1

FeatureKeypointClass · 0.85

Tested by 1

TESTFunction · 0.68