| 253 | } |
| 254 | |
| 255 | FeatureMatches MatchesFromMatrix( |
| 256 | const Eigen::Ref<const FeatureMatchesMatrix>& matches) { |
| 257 | FeatureMatches feature_matches(matches.rows()); |
| 258 | for (Eigen::Index i = 0; i < matches.rows(); ++i) { |
| 259 | feature_matches[i] = FeatureMatch(matches(i, 0), matches(i, 1)); |
| 260 | } |
| 261 | return feature_matches; |
| 262 | } |
| 263 | |
| 264 | } // namespace colmap |