opencv2的透视变换代码
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; Point2f computeIntersect(Vec4i a, Vec4i b); void sortCorners(std::vector<Point2f>& corners,Point2f center); Point2f center(0,0);