forked from uniform-marker-fields/umf-generator-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MFHGrayscale.h
37 lines (27 loc) · 1.44 KB
/
MFHGrayscale.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
#include "MFHexagonal.h"
//#include "opencv2/core/core.hpp"
class MFHGrayscale: public MFHexagonal
{
protected:
/***************************************************************
* COST AND COFLICT CALCULATIONS
**************************************************************/
void checkNeighbors();
void incCostNeighborWrap(unsigned long i1, unsigned char v1, unsigned long i2, unsigned char v2);
/***************************************************************
* IMPLEMENTED PURE VIRTUAL FUNCTIONS FROM MFSquare
**************************************************************/
void recalculateCost();
unsigned char compareTwo(unsigned int first, unsigned int second);
virtual Scalar getRGBValue(unsigned int v);
public:
/***************************************************************
* (DE)CONSTRUCTOR(S)
**************************************************************/
//MFHGrayscale(unsigned int w, unsigned int h, unsigned int k, unsigned int k_t, unsigned int t, unsigned char sE, unsigned char sN, float cE, float cD, string d);
MFHGrayscale(unsigned int w, unsigned int h, unsigned int k, unsigned int k_t, unsigned int t, unsigned char sE, const char *cn, float cs, string d);
/***************************************************************
* IMPLEMENTED PURE VIRTUAL FUNCTIONS FROM MARKERFIELD
**************************************************************/
const char* getClassName();
};