-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatch.hpp
29 lines (18 loc) · 911 Bytes
/
match.hpp
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
#include <opencv2/opencv.hpp>
using namespace cv;
enum method
{
SAD,
SSD,
KKFMF,
MOR
};
Point matchKKFMF(const Mat &OuterFrameMatrix,const Mat &InnerFrameMatrix, Mat &outResult);
Point match(const Mat &outerFrameMatrix,const Mat &innerFrameMatrix, Mat &result);
float Mor(const Mat& sm, const Mat& rm, int x,int y, float rMean_new, float sMean_old, int umax_width, int vmax_height);
Point matchMOR(const Mat &outerFrameMatrix,const Mat &innerFrameMatrix, Mat &outResult);
Point matchSAD(const Mat &OuterFrameMatrix,const Mat &InnerFrameMatrix, Mat &outResult);
Point matchSSD(const Mat &OuterFrameMatrix,const Mat &InnerFrameMatrix, Mat &outResult);
void determineValues(const Mat &Matrix, float &minValue, float &maxValue, float &meanValue);
Point matchKKFMF(const Mat &OuterFrameMatrix,const Mat &InnerFrameMatrix, Mat &outResult);
Point matchSSDMS(const Mat &,const Mat &, Mat &);