#pragma once
#include "myOpenCV.h"
#include <vector>
class Marker
{
const cv::Size IMGSIZE= cv::Size(1920, 1080); // 画像サイズ
const cv::Point MARGIN = cv::Point(10, 10);
const cv::Point SIZE = cv::Point(100, 100);
const float OUTER_MARGIN = 0.01F; // マーカー描画用
std::vector<std::vector<cv::Point2f>> _Corners;
cv::Ptr<cv::aruco::Dictionary> _Dictionary;
//int _Size;
cv::Mat _HomographyV2I;
cv::Mat _HomographyI2V;
public:
Marker();
void Generate(cv::Size imgsize);
void DrawMarker(cv::Mat& img);
bool Detect(cv::Mat& img);
cv::Point2f ConvV2I(cv::Point gazeV);
};