-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmapFunction.h
More file actions
44 lines (38 loc) · 783 Bytes
/
mapFunction.h
File metadata and controls
44 lines (38 loc) · 783 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
#ifndef MAPFUNCTION_H
#define MAPFUNCTION_H
#include "opencv/cxcore.h"
#include "opencv2/opencv.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <string>
#include <map>
#include <iostream>
#include "csapp.h"
#include "filestalk.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using namespace cv;
/*
struct imageInfo{
string name;
Mat myPic;
};*/
class mapFunction{
private:
map<int, map<string,int> > myMap;
map<int, bool> finished;
pthread_mutex_t mtx;
int circleDetect(Mat image1);
FileDir myFile;
public:
mapFunction();
void goMap(int fd, rio_t client, int ID);
bool ifDone(int id);
void getMap(int fd, int ID);
imageInfo getImage(int fileID);
void clearMap();
void printMap();
};
#endif