需要安装opencv3并且编译了features模块
// 来自高翔SLAM十四讲
#include<iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/features2d/features2d.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/calib3d/calib3d.hpp>
using namespace std;
using namespace cv;
/*
2D-2D的特征匹配估计相机运动
*/
void find_feature_matches(
const Mat& img_1, const Mat& img_2,
std::vector<KeyPoint>& keypoints_1,
std::vector<KeyPoint>& keypoints_2,
std::vector<DMatch>& matches);
void pose_estimation_2d2d(
std::vector<KeyPoint> keypoints_1,
std::vector<KeyPoint> keypoints_2,
std::vector<DMatch> matches,
Mat& R, Mat

本文介绍了一种基于特征匹配的2D-2D相机运动估计方法,使用OpenCV库实现图像特征检测、描述子计算及匹配,通过ORB特征点和BruteForce-Hamming匹配器进行特征点匹配,进一步估计出两幅图像间的相对旋转和平移。
最低0.47元/天 解锁文章
2482

被折叠的 条评论
为什么被折叠?



