-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathUtils.h
34 lines (29 loc) · 818 Bytes
/
Utils.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
#ifndef RAISR_UTILS_H
#define RAISR_UTILS_H
#include <string>
#include <map>
#include "opencv2/opencv.hpp"
#include "opencv2/core.hpp"
void debugMat(cv::Mat m);
template<typename T>
void debug(std::vector<T> v, bool newline=true) {
if (v.empty()) {
std::cout << "{}";
}
else {
std::cout << "{";
int LEN = v.size();
for (int i = 0; i < LEN; i++) {
std::cout << v[i];
if (i != LEN - 1)
std::cout << ", ";
}
std::cout << "}";
}
if (newline)
std::cout << std::endl;
}
bool matIsEqual(const cv::Mat mat1, const cv::Mat mat2);
void readListOfImage(std::string& dirPath, std::vector<cv::Mat>& imageMatList, std::vector<std::string>& imageNameList);
std::string type2str(int type);
#endif //RAISR_UTILS_H