-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstructs.hpp
More file actions
47 lines (33 loc) · 976 Bytes
/
structs.hpp
File metadata and controls
47 lines (33 loc) · 976 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
#include "CImg.h"
#include <vector>
using namespace cimg_library;
using namespace std;
/* Data exanghed within stages */
// Input data
typedef struct in {
in(){}
in(bool le) : last_element(le) {}
in(CImg<unsigned char> img, double sig, bool le) : image(img), sigma(sig), last_element(le) {}
CImg<unsigned char> image;
double sigma=0;
bool last_element;
} inputData;
// Data between two stages
typedef struct mid {
mid(){}
mid(bool le) : last_element(le) {}
mid(vector<pair<int, int>> histo, CImg<unsigned char> img, double sig, bool le) :
histogram(histo), image(img), sigma(sig), last_element(le) {}
vector<pair<int, int>> histogram;
CImg<unsigned char> image;
double sigma=0;
bool last_element;
} midData;
// Output data
typedef struct out {
out(){}
out(bool le) : last_element(le) {}
out(CImg<unsigned char> img, bool le) : image(img), last_element(le) {}
CImg<unsigned char> image;
bool last_element;
} outputData;