-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.h
More file actions
54 lines (33 loc) · 1.16 KB
/
function.h
File metadata and controls
54 lines (33 loc) · 1.16 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <opencv2/opencv.hpp>
#include <iostream>
#include <random>
#include <limits>
#include <vector>
#include <fstream>
#include <map>
#include <thread>
#include <chrono>
using namespace std;
using namespace cv;
enum class Personal_Flags {
SIFT = 1,
ORB = 2,
OTHER = 4,
//FLAG4 = 8
};
void clear_terminal();
bool userBinaryDecision (string, string, string);
int askThreshold(string, string, int);
Ptr<Feature2D> createFeatureDetector(bool, int, int);
vector<Mat> loadImage( string, string, string, bool);
void saveImageToFolder(Mat, string, string, string);
tuple<Mat, vector<KeyPoint>> KeypointsFeatureExtractor (Ptr<Feature2D>, Mat, bool, int);
vector<DMatch> matchRefine (Mat, Mat, float, Personal_Flags, int);
Mat flippingMatcher (Ptr<Feature2D>, Mat, Mat, float, int);
Mat homograpySTD (vector<KeyPoint>, vector<KeyPoint>, vector<DMatch>);
Mat homograpyMAN (vector<KeyPoint>, vector<KeyPoint>, vector<DMatch>);
Mat mergeNoShape (Mat, Mat);
vector<vector<Mat>> multiplePatchMatcher (vector<Mat>, vector<Mat>, int, int, float, int);
Mat showImageDifferences(Mat, Mat);
string getLastFolder(const std::string&);
Mat templateMatching(Mat, Mat);