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));