-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtools.h
More file actions
27 lines (22 loc) · 719 Bytes
/
tools.h
File metadata and controls
27 lines (22 loc) · 719 Bytes
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
#ifndef TOOLS_H
#define TOOLS_H
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <vector>
#include<algorithm>
using namespace cv;
using namespace std;
void Mat_2_structfp(Mat &m, int structfp[48 * 48]);
void mat2vfp(Mat s0, float m, int *vfp);
void mat2fp(Mat img, int *fp);
int calcScore(int *v0, int *v1);
void addMat(Mat &m_sum, Mat &m);
void cvtMat(Mat &m_8u3c, Mat &m_32f3c);
void int2string(string &str, int n);
int calcSAD(Mat m0, Mat m1);
void preprocessMat(Mat &src, Mat &dst);
void preprocessMat2(Mat &src, Mat &dst);
void getThumbnailBaseName(string &basename, char *vfile, char *tb_path);
#endif // TOOLS_H