Ask Your Question
2

Apply homography on a sinlge point

asked 2012-12-23 06:32:21 -0600

ref13 gravatar image

updated 2020-10-05 08:35:57 -0600

I'm rotating an image using findHomography, now I want to use transform a single point using the homography matrix. Using perspectiveTransform returns 0 and making homography*matPoint returns a value outside the origina image. What else should I do? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2012-12-23 13:19:51 -0600

rics gravatar image

First of all you can check this example.

It is possible that a projected point lies beyond the border of the original image. You can use a bigger resulting image to see the projected points.

If you are unsure about the behavior of the function you can check the projection of a point on which the homography is based so sticking to the above example one object point has to be projected to one scene point.

Earlier I have started to work with a really simple case to understand what is going on inside: e. g. an almost identity matrix. Then I have used more and more complex transformations.

edit flag offensive delete link more

Comments

Thanks, I will try the example and with the simpler version

ref13 gravatar imageref13 ( 2012-12-24 01:55:23 -0600 )edit

Question Tools

Stats

Asked: 2012-12-23 06:32:21 -0600

Seen: 9,732 times

Last updated: Dec 23 '12