-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathCVLib.h
53 lines (45 loc) · 1.78 KB
/
CVLib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// LibQPEP: A Library for Globally Optimal Solving Quadratic Pose Estimation Problems,
// It also gives highly accurate uncertainty description of the solutions.
//
// Author: Jin Wu
// Affiliation: Hong Kong University of Science and Technology (HKUST)
// Emails: [email protected]; [email protected]
// Reference: Wu, J., et al. (2022) Quadratic Pose Estimation Problems:
// Globally Optimal Solutions,
// Solvability/Observability Analysis,
// and Uncertainty Description.
// IEEE Transactions on Robotics.
// https://doi.org/10.1109/TRO.2022.3155880
#ifndef LIBQPEP_CVLIB_H
#define LIBQPEP_CVLIB_H
#include <Eigen/Core>
#include <Eigen/LU>
#include <Eigen/Dense>
#include <Eigen/Geometry> // For Quaternion
#include <Eigen/Sparse>
#ifdef USE_OPENCV
#include <opencv2/core/types.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#if WIN32
#include <windows.h>
#else
#include <X11/Xlib.h>
#endif
void getScreenResolution(int &width, int &height);
void plotQuatCov(cv::Mat& img,
const Eigen::Matrix4d& cov1,
const Eigen::Matrix4d& cov2,
const std::vector<Eigen::Vector4d>& qs,
const Eigen::Vector4d& mean_q,
const double& fontsize);
void plotTransCov(cv::Mat& img,
const Eigen::Matrix3d& cov1,
const Eigen::Matrix3d& cov2,
const std::vector<Eigen::Vector3d>& qs,
const Eigen::Vector3d& mean_q,
const double& fontsize);
#endif
#endif //LIBQPEP_CVLIB_H