Ask Your Question

apply homography to image

asked 2012-08-09 05:55:35 -0500

andrea gravatar image

hi to all!

i have a little problem...if i have a homography H and an image (call it img_source) can i apply this homography to the image? i try:

perspectiveTransform( img_source, img, H);

but when i run the program i give me an error....

thank a lot!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-08-09 06:35:06 -0500

sammy gravatar image

perspectiveTransform is used to apply a homography on a limited set of point coordinates, and it returns the new coordinates.

To convert an image based on a homography matrix, use warpPerspective()).

edit flag offensive delete link more

Question Tools


Asked: 2012-08-09 05:55:35 -0500

Seen: 11,854 times

Last updated: Aug 09 '12