-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.h
executable file
·37 lines (32 loc) · 1012 Bytes
/
structs.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
#ifndef STRUCT_H
#define STRUCT_H
#include <string>
#include "opencv2/opencv.hpp"
#include "opencv2/aruco/charuco.hpp"
using namespace std;
using namespace cv;
struct CameraSystemCalibrationOptions {
bool save_valid_frames;
string save_frames_folder;
double frame_gap; // Gap between frames to check in seconds
Ptr<aruco::Dictionary> dictionary;
Ptr<aruco::CharucoBoard> charuco_board;
Ptr<aruco::DetectorParameters> detector_parameters;
};
struct Frame {
unsigned global_index;
string camera_name;
Mat original_frame;
unsigned corner_count;
bool valid;
Mat corner_ids;
Mat detected_corners_32; // N x 1 x 32FC2
Mat board_corners_32; // N x 1 x 32FC3
Mat reprojected_corners_32; // N x 1 x 32FC2
Mat flatten_detected_corners_64; // N x 2 x 64FC1
Mat flatten_board_corners_64; // N x 3 x 64FC1
Mat flatten_reprojected_corners_64; // N x 3 x 64FC1
Mat transform; // 3 x 4 x 64FC1
double reprojection_error;
};
#endif // STRUCT_H