-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBall.hpp
More file actions
50 lines (37 loc) · 1.09 KB
/
Ball.hpp
File metadata and controls
50 lines (37 loc) · 1.09 KB
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
#pragma once
#include <opencv2/core.hpp>
#include <iostream>
#include "JSON_Worker.hpp"
using namespace std;
using namespace cv;
using namespace nlohmann;
typedef vector<double> VecD;
class JSON;
class Ball
{
public:
Ball(string Color);
static int f; // Коэффициент фокусного расстояния
static int H_MIN, H_MAX, S_MIN, S_MAX, V_MIN, V_MAX;
const float d = 0.04; // Диаметр мячика
int getXPos();
void setXPos(int x);
void setXRealPos(int x);
void calculateXRealPos(int Frame_Width, int Frame_Height);
float getXRealPos();
int getYPos();
void setYPos(int y);
void setYRealPos(int y);
void calculateYRealPos(int Frame_Width, int Frame_Height);
float getYRealPos();
int getZDiameter();
void setZDiameter(int z);
void setZRealPos(int z);
void calculateZRealPos();
float getZRealPos();
VecD staticXData;
VecD staticZData;
VecD staticYData;
private:
float xPos, yPos, zDiameter, XRealPos, YRealPos, ZRealPos;
};