Ask Your Question
1

apply homography to image

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

andrea gravatar image

hi to all!

i have a little problem...if i have a homography H and an image (call it img_source)....how 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
6

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

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

Stats

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

Seen: 15,295 times

Last updated: Aug 09 '12