NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
feature_match.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_MATCH_H_
19 #define VISION_COMMON_FEATURE_MATCH_H_
20 
21 #include <Eigen/Core>
22 
23 #include <vector>
24 
25 namespace vision_common {
26 struct FeatureMatch {
27  FeatureMatch(const Eigen::Vector2d& source_point, const Eigen::Vector2d& target_point, const double distance)
29  Eigen::Vector2d source_point;
30  Eigen::Vector2d target_point;
31  double distance;
32 
33  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34 };
35 using FeatureMatches = std::vector<FeatureMatch>;
36 } // namespace vision_common
37 
38 #endif // VISION_COMMON_FEATURE_MATCH_H_
vision_common::FeatureMatch::FeatureMatch
FeatureMatch(const Eigen::Vector2d &source_point, const Eigen::Vector2d &target_point, const double distance)
Definition: feature_match.h:27
vision_common::FeatureMatches
std::vector< FeatureMatch > FeatureMatches
Definition: feature_match.h:35
vision_common
Definition: brisk_feature_detector_and_matcher.h:25
vision_common::FeatureMatch
Definition: feature_match.h:26
vision_common::FeatureMatch::source_point
Eigen::Vector2d source_point
Definition: feature_match.h:29
vision_common::FeatureMatch::distance
double distance
Definition: feature_match.h:31
vision_common::FeatureMatch::target_point
Eigen::Vector2d target_point
Definition: feature_match.h:30