Calculating original image points with perspectiveTransform()

asked 2018-04-09 06:38:13 -0500

charles1208 gravatar image

Given a pair of images, imgA and imgB, i resized them first:

cv::resize(imgA, resizedA, cv::Size(1000,1000), 0, 0, INTER_AREA);
cv::resize(imgB, resizedB, cv::Size(1000,1000), 0, 0, INTER_AREA);

Then i calculate the keypoints to find the homography matrix H.

Now, given a point in resizedA, I understand that the H gives the corresponding point in resizedB, after using cv::perspectiveTransform(). However, if I want the same corresponding point in imgB, what transform do I use to get it?

edit retag flag offensive close merge delete


Did you try inverting H?

Der Luftmensch gravatar imageDer Luftmensch ( 2018-04-09 06:47:52 -0500 )edit