-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtracker.h
45 lines (36 loc) · 1.15 KB
/
tracker.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
#ifndef TRACKING_H
#define TRACKING_H
#include <aruco/aruco.h>
#include <aruco/cvdrawingutils.h>
#include <opencv2/opencv.hpp>
#include <Eigen/Geometry>
#include "frame.h"
#include "helper.h"
#include <iostream> // std::cout, std::fixed
#include <iomanip> // std::setprecision
#include <fstream>
#include <sstream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
class Tracker
{
public:
Tracker(double markersize = 0.0325, std::string boardfile = "chessinfo_meter.yml");
void getTransformation(Frame & input);
double getThresParam1() const;
void setThresParam1(double value);
double getThresParam2() const;
void setThresParam2(double value);
bool debugmode;
private:
Eigen::Affine3f createMatrixfromVectors(const cv::Mat &rvec, const cv::Mat &tvec);
Eigen::Affine3f create_rotation_matrix(double ax, double ay, double az);
string TheBoardConfigFile;
float TheMarkerSize;
aruco::CameraParameters TheCameraParameters;
aruco::BoardConfiguration TheBoardConfig;
aruco::BoardDetector TheBoardDetector;
double ThresParam1;
double ThresParam2;
};
#endif // TRACKING_H