-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.hpp
More file actions
68 lines (52 loc) · 978 Bytes
/
Copy pathcommon.hpp
File metadata and controls
68 lines (52 loc) · 978 Bytes
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* common.hpp
*
* Created on: Oct 25, 2011
* Author: prathamesh
*/
#ifndef COMMON_HPP_
#define COMMON_HPP_
//OpenCV Libraries
#include <cv.h>
#include <highgui.h>
//IO Libraries
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
//Math Library
#include <math.h>
//Other MACROS
#define DRAW
#define DRAWALLT1
#define DRAWALLT2
#define DRAWALLT3
#define DEBUG
#define DEBUGL1
#define DEBUGL2
#define DEBUGL3
#define LEAFDISP
#define DRAWCONTOUR
//#define L2
//#define L3
//Constant MACROS
#define PI 3.14159265
#define DIST1 50
#define DIST2 50
#define DIST3 50
#define CLOSENESST1 2
#define CLOSENESST2 2
#define CLOSENESST3 1
using namespace cv;
using namespace std;
//Image Matrices
Mat leafColor, leaf;
Mat templColor, templ;
Mat leaf2, leaf3;
//Final Orientation and Position of Template 1
/*int t1x, t1y, r1;
int t2x, t2y, r2;
int t3x, t3y, r3;*/
int holes;
//Runtime current coordinates
int currentx, currenty;
#endif /* COMMON_HPP_ */