step1.获取投影变换矩阵 (1)使用getPerspectiveTransform()函数 // 平面1std::vector<cv::Point2f>image1_pts{cv::Point2f(483,432),cv::Point2f(960,432),cv::Point2f(27,960),cv::Point2f(1172,960)};// 平面2std::vector<cv::Point2f>image2_pts{cv::Point2f(50,100),cv::Point2f(400,100...
5. 使用cv.findHomography函数估计单应性变换矩阵H。 6. 使用cv.warpPerspective函数将im_src应用单应性变换矩阵H,得到变换后的图像im_dst_h。 7. 使用cv.imshow函数显示原始图像im_src、目标图像im_dst和变换后的图像im_dst_h。 8. 使用cv.waitKey函数等待用户按下键盘。 9. 使用cv.destroyAllWindows函数关闭...