#include <feature_matcher.h>
Definition at line 64 of file feature_matcher.h.
| bsfm::FeatureMatcher::FeatureMatcher |
( |
| ) |
|
|
inline |
| virtual bsfm::FeatureMatcher::~FeatureMatcher |
( |
| ) |
|
|
inlinevirtual |
| void bsfm::FeatureMatcher::AddImageFeatures |
( |
const std::vector< Feature > & |
image_features, |
|
|
const std::vector< Descriptor > & |
image_descriptors |
|
) |
| |
|
virtual |
Definition at line 43 of file feature_matcher.cpp.
std::vector< std::vector< Feature > > image_features_
std::vector< std::vector< Descriptor > > image_descriptors_
| void bsfm::FeatureMatcher::AddImageFeatures |
( |
const std::vector< std::vector< Feature > > & |
image_features, |
|
|
const std::vector< std::vector< Descriptor > > & |
image_descriptors |
|
) |
| |
|
virtual |
Definition at line 51 of file feature_matcher.cpp.
55 image_features.end());
57 image_descriptors.end());
std::vector< std::vector< Feature > > image_features_
std::vector< std::vector< Descriptor > > image_descriptors_
| virtual bool bsfm::FeatureMatcher::MatchImagePair |
( |
int |
image_index1, |
|
|
int |
image_index2, |
|
|
PairwiseImageMatch & |
image_match |
|
) |
| |
|
protectedpure virtual |
Definition at line 60 of file feature_matcher.cpp.
79 PairwiseImageMatch image_match;
81 VLOG(1) <<
"Could not match image " << ii <<
" to image " << jj <<
".";
86 image_matches.push_back(image_match);
91 return image_matches.size() > 0;
std::vector< std::vector< Feature > > image_features_
virtual bool MatchImagePair(int image_index1, int image_index2, PairwiseImageMatch &image_match)=0
FeatureMatcherOptions options_
Definition at line 94 of file feature_matcher.cpp.
97 std::unordered_map<int, int> feature_indices;
98 feature_indices.reserve(feature_matches_lhs.size());
101 for (
const auto& feature_match : feature_matches_lhs) {
102 feature_indices.insert(std::make_pair(feature_match.feature_index1_,
103 feature_match.feature_index2_));
108 auto rhs_iter = feature_matches_rhs.begin();
109 while (rhs_iter != feature_matches_rhs.end()) {
110 const auto& lhs_matched_iter =
111 feature_indices.find(rhs_iter->feature_index2_);
114 if (lhs_matched_iter != feature_indices.end()) {
115 if (lhs_matched_iter->second == rhs_iter->feature_index1_) {
122 feature_matches_rhs.erase(rhs_iter);
| std::vector<std::vector<Descriptor> > bsfm::FeatureMatcher::image_descriptors_ |
|
protected |
| std::vector<std::vector<Feature> > bsfm::FeatureMatcher::image_features_ |
|
protected |
The documentation for this class was generated from the following files: