-
Notifications
You must be signed in to change notification settings - Fork 0
/
FigureFrame.h
48 lines (35 loc) · 870 Bytes
/
FigureFrame.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
46
47
48
/*
* File: FigureFrame.h
* Author: ros
*
* Created on 21. April 2011, 16:15
*/
#ifndef FIGUREFRAME_H
#define FIGUREFRAME_H
#include <opencv/cv.h>
#include "MinMax.h"
class FigureFrame {
public:
FigureFrame();
FigureFrame(int _x, int _y, int _w, int _h, int _i);
FigureFrame(const FigureFrame& orig);
virtual ~FigureFrame();
public:
CvPoint GetCenterPoint();
int GetDistanceFromKinect();
void Draw(CvArr* img, int Thickness = 1);
void DrawAsMask(CvArr* img);
static IplImage* depthImage;
static SMinMax mmWidth, mmHeight;
bool IsInside(int x, int y);
int Index() { return index; }
CvPoint GetCenterOfGravity();
bool IsValid();
public:
cv::Mat Matrix;
private:
int x, y, width, height, index;
CvFont font;
CvMoments moments;
};
#endif /* FIGUREFRAME_H */