diff --git a/src/feature/matcher.cc b/src/feature/matcher.cc index e830b9c..53f0703 100644 --- a/src/feature/matcher.cc +++ b/src/feature/matcher.cc @@ -8,11 +8,11 @@ namespace feature Matcher::Matcher(std::string descriptor_type, double max_dist) : maxDistance_(max_dist) { - if (descriptor_type == "SIFT" || descriptor_type == "SURF" || descriptor_type == "KAZE" || descriptor_type == "DAISY" || descriptor_type == "LUCID" || descriptor_type == "VGG") + if (descriptor_type == "SIFT" || descriptor_type == "SURF" || descriptor_type == "KAZE" || descriptor_type == "DAISY" || descriptor_type == "VGG") { matcher_ = cv::BFMatcher::create(cv::NORM_L2, true); } - else if (descriptor_type == "ORB" || descriptor_type == "BRISK" || descriptor_type == "AKAZE" || descriptor_type == "FREAK" || descriptor_type == "LATCH" || descriptor_type == "BOOST") + else if (descriptor_type == "ORB" || descriptor_type == "BRISK" || descriptor_type == "AKAZE" || descriptor_type == "FREAK" || descriptor_type == "LATCH" || descriptor_type == "LUCID" || descriptor_type == "BOOST") { matcher_ = cv::BFMatcher::create(cv::NORM_HAMMING, true); }