NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
feature_detector_and_matcher.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 #ifndef VISION_COMMON_FEATURE_DETECTOR_AND_MATCHER_H_
19 #define VISION_COMMON_FEATURE_DETECTOR_AND_MATCHER_H_
20 
23 
24 #include <opencv2/features2d.hpp>
25 
26 namespace vision_common {
28  public:
29  virtual FeatureMatches Match(const FeatureImage& source_image, const FeatureImage& target_image) = 0;
30  const cv::Ptr<cv::Feature2D>& detector() { return detector_; }
31 
32  protected:
33  cv::Ptr<cv::Feature2D> detector_;
34 };
35 } // namespace vision_common
36 
37 #endif // VISION_COMMON_FEATURE_DETECTOR_AND_MATCHER_H_
vision_common::FeatureMatches
std::vector< FeatureMatch > FeatureMatches
Definition: feature_match.h:35
vision_common
Definition: brisk_feature_detector_and_matcher.h:25
feature_image.h
vision_common::FeatureDetectorAndMatcher::Match
virtual FeatureMatches Match(const FeatureImage &source_image, const FeatureImage &target_image)=0
vision_common::FeatureDetectorAndMatcher::detector_
cv::Ptr< cv::Feature2D > detector_
Definition: feature_detector_and_matcher.h:33
vision_common::FeatureImage
Definition: feature_image.h:27
vision_common::FeatureDetectorAndMatcher::detector
const cv::Ptr< cv::Feature2D > & detector()
Definition: feature_detector_and_matcher.h:30
feature_match.h
vision_common::FeatureDetectorAndMatcher
Definition: feature_detector_and_matcher.h:27