7 #ifndef MTF_GRAPH_UTILS_H 8 #define MTF_GRAPH_UTILS_H 10 #include "mtf/Macros/common.h" 11 #include "opencv2/core/core.hpp" 13 #define DEFAULT(val) = val 23 cv::Mat drawFloatGraph(
const float *arraySrc,
int nArrayLength, cv::Mat imageDst DEFAULT(cv::Mat()),
24 float minV DEFAULT(0.0),
float maxV DEFAULT(0.0),
int width DEFAULT(0),
int height DEFAULT(0),
25 char *graphLabel DEFAULT(0),
bool showScale DEFAULT(
true));
29 cv::Mat drawIntGraph(
const int *arraySrc,
int nArrayLength, cv::Mat imageDst DEFAULT(cv::Mat()),
30 int minV DEFAULT(0),
int maxV DEFAULT(0),
int width DEFAULT(0),
int height DEFAULT(0),
31 char *graphLabel DEFAULT(0),
bool showScale DEFAULT(
true));
35 cv::Mat drawUCharGraph(
const uchar *arraySrc,
int nArrayLength, cv::Mat imageDst DEFAULT(cv::Mat()),
36 int minV DEFAULT(0),
int maxV DEFAULT(0),
int width DEFAULT(0),
int height DEFAULT(0),
37 char *graphLabel DEFAULT(0),
bool showScale DEFAULT(
true));
42 void showFloatGraph(
const char *name,
const float *arraySrc,
int nArrayLength,
int delay_ms DEFAULT(500),
43 cv::Mat background DEFAULT(cv::Mat()));
48 void showIntGraph(
const char *name,
const int *arraySrc,
int nArrayLength,
int delay_ms DEFAULT(500),
49 cv::Mat background DEFAULT(cv::Mat()));
54 void showUCharGraph(
const char *name,
const uchar *arraySrc,
int nArrayLength,
int delay_ms DEFAULT(500),
55 cv::Mat background DEFAULT(cv::Mat()));
58 void showImage(
const cv::Mat img,
int delay_ms DEFAULT(0),
char *name DEFAULT(0));
61 void setGraphColor(
int index DEFAULT(0));
63 void setCustomGraphColor(
int R,
int B,
int G);
67 #endif //end GRAPH_UTILS Definition: RegNetParams.h:32
basic functions for preprocessing the raw input image using filtering, resizing and histogram equaliz...
Definition: histUtils.h:20