FeatureMatch.h 1017 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include <opencv2/opencv.hpp>
  3. #include <opencv2/xfeatures2d.hpp>
  4. #include <opencv2/xfeatures2d/nonfree.hpp>
  5. #include <opencv2/features2d/features2d.hpp>
  6. #include <iostream>
  7. using namespace std;
  8. using namespace cv;
  9. using namespace cv::xfeatures2d;
  10. Mat Conv2(const Mat &img, const Mat &ikernel);
  11. void GaussianSmooth(Mat src, Mat dst, float sigma);
  12. void ORBMatch(Mat img1, Mat img2, vector<KeyPoint>& keypoints1, vector<KeyPoint>& keypoints2,
  13. vector<DMatch>& bestMatches);
  14. void SURFMatch(Mat img1, Mat img2, vector<KeyPoint>& keypoints1, vector<KeyPoint>& keypoints2,
  15. vector<DMatch>& bestMatches);
  16. void SIFTMatch(Mat img1, Mat img2, vector<KeyPoint>& keypoints1, vector<KeyPoint>& keypoints2,
  17. vector<DMatch>& bestMatches);
  18. vector<DMatch> RatioTest(vector<vector<DMatch>> matches12, double ratio);
  19. vector<DMatch> SymmetricTest(vector<DMatch> goodMatches1, vector<DMatch> goodMatches2);
  20. vector<DMatch> FilterDistance(Mat descriptors, vector<DMatch> matches);