// opencv实现投影变换
// 2015 - 09 - 05 create by hym
// 在屏幕上依次点四个点(左上->左下->右下->右上),再点击屏幕上任意一点即可
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include <iostream>
#include <limits>
#include <numeric>
using namespace cv;
using namespace std;
// We need 4 corresponding 2D points(x,y) to calculate homography.
vector<Point2f> left_image; // Stores 4 points(x,y) of the logo image. Here the four points are 4 corners of image.
opencv四点投影变换
最新推荐文章于 2024-04-27 23:05:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)