NASA Astrobee Robot Software
Astrobee Version:
develop
master
ros2
v0.17.0
v0.17.1
v0.17.2
v0.17.3
v0.18.0
v0.19.0
v0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
Main Page
Modules
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
visualization_utilities.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
19
#ifndef SPARSE_MAPPING_VISUALIZATION_UTILITIES_H_
20
#define SPARSE_MAPPING_VISUALIZATION_UTILITIES_H_
21
22
#include <
camera/camera_params.h
>
23
24
#include <Eigen/Geometry>
25
#include <opencv2/core/core.hpp>
26
#include <opencv2/imgproc.hpp>
27
28
#include <vector>
29
30
namespace
sparse_mapping
{
31
// Convert keypoints from matrix to cv::KeyPoints
32
std::vector<cv::KeyPoint>
Keypoints
(
const
Eigen::Matrix2Xd& keypoints_mat);
33
34
// Convert keypoints from undistorted centered matrix to distorted cv::KeyPoints
35
std::vector<cv::KeyPoint>
DistortedKeypoints
(
const
Eigen::Matrix2Xd& keypoints_mat,
36
const
camera::CameraParameters
& camera_params);
37
38
// View input keypoints, map keypoints, and matches
39
void
ViewMatches
(
const
Eigen::Matrix2Xd& input_keypoints_mat,
const
Eigen::Matrix2Xd& map_keypoints_mat,
40
const
std::vector<cv::DMatch>& matches,
const
camera::CameraParameters
& camera_params,
41
const
cv::Mat& input_image,
const
cv::Mat& map_image);
42
}
// namespace sparse_mapping
43
44
#endif // SPARSE_MAPPING_VISUALIZATION_UTILITIES_H_
sparse_mapping::Keypoints
std::vector< cv::KeyPoint > Keypoints(const Eigen::Matrix2Xd &keypoints_mat)
Definition:
visualization_utilities.cc:25
sparse_mapping
Definition:
localization_parameters.h:22
camera::CameraParameters
Definition:
camera_params.h:58
sparse_mapping::DistortedKeypoints
std::vector< cv::KeyPoint > DistortedKeypoints(const Eigen::Matrix2Xd &keypoints_mat, const camera::CameraParameters &camera_params)
Definition:
visualization_utilities.cc:33
sparse_mapping::ViewMatches
void ViewMatches(const Eigen::Matrix2Xd &input_keypoints_mat, const Eigen::Matrix2Xd &map_keypoints_mat, const std::vector< cv::DMatch > &matches, const camera::CameraParameters &camera_params, const cv::Mat &input_image, const cv::Mat &map_image)
Definition:
visualization_utilities.cc:44
camera_params.h