Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 75712081bb
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.763 kB
/*
* GPUSURFFeatureMatcher.h
* ExploringSfMWithOpenCV
*
* Created by Roy Shilkrot on 6/13/12.
*
*/
#include "IFeatureMatcher.h"
#include <opencv2/gpu/gpu.hpp>
class GPUSURFFeatureMatcher : public IFeatureMatcher {
private:
cv::Ptr<cv::gpu::SURF_GPU> extractor;
std::vector<cv::gpu::GpuMat> descriptors;
std::vector<cv::gpu::GpuMat> imgs;
std::vector<cv::gpu::GpuMat> imggpupts;
std::vector<std::vector<cv::KeyPoint> >& imgpts;
bool use_ratio_test;
public:
//c'tor
GPUSURFFeatureMatcher(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 = NULL);
std::vector<cv::KeyPoint> GetImagePoints(int idx) { return imgpts[idx]; }
};
Jump to Line
Something went wrong with that request. Please try again.