1 #ifndef MASK_DETECTOR_COMMON_H 2 #define MASK_DETECTOR_COMMON_H 7 #include "opencv2/core.hpp" 8 #include <opencv2/core/types.hpp> 9 #include <opencv2/core/utility.hpp> 44 std::vector<cv::Scalar> colors;
48 int distance_threshold;
50 double camera_to_drone_trans_vector[4];
51 double camera_to_drone_rot_vector[4];
53 double distance_between_points;
54 double distance_between_lines;
57 double camera_matrix[9];
58 double distortion_matrix[4];
74 cv::Vec3d rot_to_euler(cv::Mat &R);
81 cv::Mat euler_to_rot(
const cv::Vec3d &euler);
84 #endif //MASK_DETECTOR_COMMON_H int id
Id detected in the ArUco marker, only used when detecting with ArUco.
Definition: detector_common.h:37
cv::Point2f center_brick
Center of the brick in the 2D image.
Definition: detector_common.h:36
double mean_distance
Distance mean between all pairs of consecutive points.
Definition: detector_common.h:25
cv::Mat translation_vector
Translation vector between the camera and the brick.
Definition: detector_common.h:35
A detected block in the image, along with the extracted spatial informations.
Definition: detector_common.h:33
std::vector< int > keypoints_index
The index of the keypoints.
Definition: detector_common.h:23
double mean_angle
Angle mean between all pairs of consecutive points.
Definition: detector_common.h:24
cv::Mat rotation_vector
Rotation vector between the camera and the brick.
Definition: detector_common.h:34
double center_y
Y-coordinate center between all the points.
Definition: detector_common.h:27
double center_x
X-coordinate center between all the points.
Definition: detector_common.h:26
Represents a line, made of equidistant and aligned color points.
Definition: detector_common.h:22
Config used.
Definition: detector_common.h:43
Definition: detector_common.cpp:7