forked from MasteringOpenCV/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOFFeatureMatcher.h
More file actions
executable file
·24 lines (21 loc) · 1.03 KB
/
OFFeatureMatcher.h
File metadata and controls
executable file
·24 lines (21 loc) · 1.03 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
/*****************************************************************************
* ExploringSfMWithOpenCV
******************************************************************************
* by Roy Shilkrot, 5th Dec 2012
* http://www.morethantechnical.com/
******************************************************************************
* Ch4 of the book "Mastering OpenCV with Practical Computer Vision Projects"
* Copyright Packt Publishing 2012.
* http://www.packtpub.com/cool-projects-with-opencv/book
*****************************************************************************/
#include "AbstractFeatureMatcher.h"
class OFFeatureMatcher : public AbstractFeatureMatcher {
std::vector<cv::Mat>& imgs;
std::vector<std::vector<cv::KeyPoint> >& imgpts;
public:
OFFeatureMatcher(bool _use_gpu,
std::vector<cv::Mat>& imgs_,
std::vector<std::vector<cv::KeyPoint> >& imgpts_);
void MatchFeatures(int idx_i, int idx_j, std::vector<cv::DMatch>* matches);
std::vector<cv::KeyPoint> GetImagePoints(int idx) { return imgpts[idx]; }
};