Tag: homography

计算关键点的新位置

有人可以帮助我,如何计算变换图像中关键点的新位置,在原始图像中检测关键点。 我使用opencv单应矩阵和warpPerspective来制作转换后的图像。 这是一个代码.. … std::vector points1,points2; for( int i = 0; i < matches1.size(); i++ ) { points1.push_back( keypoints_input1[matches1[i].queryIdx ].pt ); points2.push_back( keypoints_input2[matches1[i].trainIdx ].pt ); } /* Find the Homography Matrix for current and next frame*/ Mat H1 = findHomography( points2, points1, CV_RANSAC ); /* Use the Homography Matrix to warp the images*/ cv::Mat result1; […]