findHomography() returns matrix of homography.
The perspectiveTransform()
on the basis of this matrix gives you corners of the object inside the scene.
Question
Hi i want to know what does the findHomography method do and the result it generates. Can anyone give me good explanation of this method.
H = findHomography( obj, scene, CV_RANSAC );
perspectiveTransform( obj_corners, scene_corners, H);
Solution
findHomography() returns matrix of homography.
The perspectiveTransform()
on the basis of this matrix gives you corners of the object inside the scene.