0
我正在重写以下代码在android上为两个图像扭曲两个图像,我需要在android opencv中找到1st的等效语句。请帮忙。Android中的Homography矩阵opencv
std::vector<Point2f> obj;
std::vector<Point2f> scene;
Mat H = findHomography(obj, scene, CV_RANSAC);
// Use the Homography Matrix to warp the images
cv::Mat result;
warpPerspective(image1,result,H,cv::Size(image1.cols+image2.cols,image1.rows));
cv::Mat half(result,cv::Rect(0,0,image2.cols,image2.rows));