1 #ifndef _MY_CONVERTOR_HEADER_
2 #define _MY_CONVERTOR_HEADER_
6 #pragma warning(disable:4996 4251 4275 4800)
9 #include <opencv2/core.hpp>
15 #include "blocks/ParamValue.h"
19 namespace MatrixConvertor
21 cv::Mat convert(cv::Mat src,
int outputType);
22 cv::Mat adjustChannels(cv::Mat src,
int nbChannels,
bool duplicate =
true);
23 std::string printElem(cv::Mat src,
int x,
int y,
int channel = 0);
24 double getElem(cv::Mat src,
int x,
int y,
int channel);
26 namespace StringConvertor
28 std::string regExExpend(std::string input, std::initializer_list<ParamValue*> list = {});
29 std::string regExExpend(std::string input, std::vector<ParamValue*> list = {},
30 std::map<std::string, ParamValue*> valuesToMatch = std::map<std::string, ParamValue*>());