-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathConfig.h
More file actions
44 lines (32 loc) · 919 Bytes
/
Config.h
File metadata and controls
44 lines (32 loc) · 919 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
#pragma once
#include "Utility/IConfig.h"
#include <QString>
#include <map>
class Config : public IConfig
{
public:
bool UseAbsoluteDifference = true;
int BinarizationThreshold = 40;
int MaximumImageValue = 255;
int OpeningErosionSize = 8;
int OpeningDilationSize = 8;
int ClosingDilationSize = 8;
int ClosingErosionSize = 8;
int MinBlobSize = 40;
int MaxBlobSize = 999999;
double LearningRate = 0.05;
int DoNetwork = true;
int NetworkPort = 54444;
int DoBackground = true;
int ResetBackground = false;
int EnableView = 1;
int EnableMove = 1;
int EnableRemove = 1;
int EnableSwap = 1;
int EnableAdd = 1;
int EnableRotate = 1;
int NoFish = 0;
void load(QString dir, QString file = "config.ini") override;
void save(QString dir, QString file) override;
static const QString DefaultArena;
};