vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
debug_utils.h
1 #ifndef DEBUG_UTILS_H
2 #define DEBUG_UTILS_H
3 
4 #include "toolbox.h"
5 
6 const static cv::Scalar black = CV_RGB(0, 0, 0);
7 const static cv::Scalar gray = CV_RGB(128, 128, 128);
8 const static cv::Scalar lightgray = CV_RGB(192, 192, 192);
9 const static cv::Scalar white = CV_RGB(255, 255, 255);
10 const static cv::Scalar blue = CV_RGB(0, 0, 255);
11 const static cv::Scalar light_blue = CV_RGB(0, 160, 255);
12 const static cv::Scalar cyan = CV_RGB(0, 255, 255);
13 const static cv::Scalar lime = CV_RGB(0, 255, 0);
14 const static cv::Scalar green = CV_RGB(0, 160, 0);
15 const static cv::Scalar yellow = CV_RGB(255, 255, 0);
16 const static cv::Scalar orange = CV_RGB(255, 192, 0);
17 const static cv::Scalar red = CV_RGB(255, 0, 0);
18 const static cv::Scalar purple = CV_RGB(80, 0, 255);
19 
20 const static cv::Scalar colors[] = {
21  black,
22  gray,
23  lightgray,
24  red,
25  orange,
26  yellow,
27  lime,
28  green,
29  cyan,
30  blue,
31  light_blue,
32  purple,
33  white
34 };
35 
36 void drawCross(cv::Mat& img, cv::Point2f& p, cv::Scalar color);
37 void drawFace(cv::Mat& img, const cv::Rect& r);
38 
39 namespace vr {
40 
42 {
43 private:
44  cv::Mat image_;
45 public:
46  DebugHelper(cv::Mat& image);
47  void drawFeature(const Feature& feature);
48  void drawCross(const cv::Point2f& p, const cv::Scalar& color, int thickness = 3);
49  void drawCircle(const cv::Point2f& p, const float radius, const cv::Scalar& color, int thickness = 3);
50  void drawRect(const cv::Rect& r, const cv::Scalar& color, int thickness = 1);
51  void drawFace(const cv::Rect& r);
52 };
53 
54 }
55 
56 #endif // DEBUG_UTILS_H
Definition: debug_utils.h:41
Definition: features.h:68