-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathimagedebughelper.h
73 lines (54 loc) · 1.99 KB
/
imagedebughelper.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef IMAGEDEBUGHELPER_H
#define IMAGEDEBUGHELPER_H
#include <base_detector.h>
#include <htwk_vision.h>
namespace htwk {
class ImageDebugHelper : public BaseDetector {
public:
ImageDebugHelper(HTWKVision& vision, HtwkVisionConfig& config)
: BaseDetector(vision.getLutCb(), vision.getLutCr(), config), vision(vision) {}
void process(uint8_t* img);
void setIntegralImageInputActive(bool active) {
isIntegralImageInputActive = active;
}
void setDrawRatingImageActive(bool active) {
isDrawRatingImageActive = active;
vision.hypothesesGenerator->setDebugActive(active);
}
void setDrawObstacleInputParameterActive(bool active) {
isDrawObstacleInputParameterActive = active;
}
void setBallDetectionLowerCamInputParameterActive(bool active) {
isDrawBallDetectionLowerCamInputParameterActive = active;
}
void setDrawObstacleResultActive(bool active) {
isDrawObstacleResultActive = active;
}
void setDrawFieldBorderInputData(bool active) {
isDrawFieldBorderInputDataActive = active;
}
void setFieldBorderData(bool active) {
isDrawFieldBorderActive = active;
}
void setDrawUCBallHypGenScaledImage(bool active) {
isDrawUCBallHypGenScaledImage = active;
}
void setJerseyDetection(bool active) {
isJerseyDetectionActive = active;
}
private:
HTWKVision& vision;
bool isIntegralImageInputActive = false;
bool isDrawRatingImageActive = false;
bool isDrawObstacleInputParameterActive = false;
bool isDrawObstacleResultActive = false;
bool isDrawBallDetectionLowerCamInputParameterActive = false;
bool isDrawFieldBorderInputDataActive = false;
bool isDrawFieldBorderActive = false;
bool isDrawUCBallHypGenScaledImage = false;
bool isJerseyDetectionActive = false;
void drawIntegralImageInput(uint8_t* img);
void drawRatingImage(HTWKVision& vision, uint8_t* img);
};
} // namespace htwk
#endif // IMAGEDEBUGHELPER_H