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);
Was it helpful?

Solution

findHomography() returns matrix of homography.

The perspectiveTransform() on the basis of this matrix gives you corners of the object inside the scene.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top