-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathedge_grouping.h
56 lines (42 loc) · 1.04 KB
/
edge_grouping.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
49
50
51
52
53
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: edge_grouping.h
* Author: ilias
*
* Created on February 21, 2018, 2:33 PM
*/
#ifndef EDGE_GROUPING_H
#define EDGE_GROUPING_H
#include "Litterheaders.h"
extern Mat map2_temp, threshed;
typedef struct {
int activeness, lifetime, abandoness, objarea, boxarea;
bool update;
Point origin, endpoint, centre;
} AO;
typedef struct {
bool proc;
int lifetime;
int apparition;
Point origin;
Point centre;
Point endpoint;
int activeness;
bool active;
int positiongroup;
bool skip;
} object;
class objects {
public:
vector<AO> abandonnes, processed_objects;
int compteur;
vector<object> candidat;
int minDistance(Point p1, Point p2, Point q1, Point q2);
void grouping(Mat &image, int j);
void extractObject(Mat &image, Mat & frame, int i, Mat & map2);
};
#endif /* EDGE_GROUPING_H */