-
Notifications
You must be signed in to change notification settings - Fork 4
/
cvxImgMatch.h
52 lines (39 loc) · 1.64 KB
/
cvxImgMatch.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// cvxImgMatch.h
// RGBD_RF
//
// Created by jimmy on 2016-09-06.
// Copyright (c) 2016 Nowhere Planet. All rights reserved.
//
#ifndef __RGBD_RF__cvxImgMatch__
#define __RGBD_RF__cvxImgMatch__
// matching two images in pixel level
#include <stdio.h>
#include "opencv2/core/core.hpp"
#include "opencv2/core/core_c.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include <vector>
#include "eigenVLFeatSIFT.h"
using std::vector;
struct SIFTMatchingParameter
{
};
class CvxImgMatch
{
public:
static void SIFTMatching(const cv::Mat & srcImg, const cv::Mat & dstImg,
const SIFTMatchingParameter & param,
vector<cv::Point2d> & srcPts, vector<cv::Point2d> & dstPts);
static void SIFTMatching(const vector<std::shared_ptr<sift_keypoint> >& src_keypoints,
const vector<std::shared_ptr<sift_keypoint> >& dst_keypoints,
const SIFTMatchingParameter & param,
vector<cv::Point2d> & srcPts, vector<cv::Point2d> & dstPts);
// nearest neighbor matching
static void NNMatching(const cv::Mat & srcDescriptors, const cv::Mat & dstDescriptors,
const vector<cv::Point2d> & srcPts, const vector<cv::Point2d> & dstPts,
vector<cv::Point2d> & matchedSrcPts, vector<cv::Point2d> & matchedDstPts);
static void ORBMatching(const cv::Mat & srcImg, const cv::Mat & dstImg,
vector<cv::Point2d> & srcPts, vector<cv::Point2d> & dstPts);
};
#endif /* defined(__RGBD_RF__cvxImgMatch__) */