0
我正在使用Visual Studio 2012上的OpenCV 2.3.1进行图像拼接项目。 由于某个未知原因,我的程序无法使用!使用openCV查找单应矩阵
#include "opencv2/highgui/highgui.hpp"
#include "opencv/cv.h"
#include <stdio.h>
#include <iostream>
using namespace cv;
using namespace std;
Mat getHomography()
{
vector<Point2f> points1;
vector<Point2f> points2;
points1.push_back(Point2f(10, 100));
points1.push_back(Point2f(100, 10));
points1.push_back(Point2f(200, 20));
points1.push_back(Point2f(80, 30));
points2.push_back(Point2f(220, 20));
points2.push_back(Point2f(10, 220));
points2.push_back(Point2f(90, 120));
points2.push_back(Point2f(100, 20));
Mat H = findHomography(Mat(points1), Mat(points2), 8, 3.0);
return H;
}
int main(){
Mat HH = getHomography();
cout<<HH;
system("pause");
return 0;
}
我的问题: 任何帮助plzzz
然后我就试试吧:d – 2013-03-17 15:27:55
“getHompgraphy”,呵呵,我喜欢它,听起来不错:) – berak 2013-03-17 15:31:09
hhhhhhhhhhh 10x:D – 2013-03-17 15:32:24